Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 18 Oct 2017, 18:29
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
LAMP - new version server package with Hiawatha
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Author Message
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sat 28 Mar 2009, 23:59    Post subject:  LAMP - new version server package with Hiawatha  

I have put together a new LAMP pet with
mysql 5.1.31
php 5.2.8
hiawatha 6.11
phpMyAdmin 3.1.3.1

See
http://www.puppylinux.org/wiki/software-applications/internet1/lamp-vs-plhmp-php-and-mysql-with-hiawatha

This is tested with puppy 4.2 RC4 - I have not tested with 4.1.2 where the existing bundled hiawatha should be upgraded to 6.11

Let me know if you encounter any issues .. easy ones only please Very Happy

This pet is 13 Meg so quite a bit smaller than the eighty odd meg of XAMP

Last edited by growler on Wed 06 May 2009, 00:59; edited 2 times in total
Back to top
View user's profile Send private message 
vtrli

Joined: 01 Apr 2009
Posts: 5

PostPosted: Wed 01 Apr 2009, 23:28    Post subject:  

Hi Growler,

Could you help I'm new to puppylinux. I'm using puppy live CD 4.2 with usb drive and 256MB memory. pupsave and pup_40.sfs working fine on usb drive.

Just installed LAMP-6.11-5.1.31-5.2.8.pet on 4.2 and have hiawatha working but not for mysql. 404 not found for http://localhost/phpMyAdmin/index.php

Tried restart mysql and get the following error:
/etc/init.d/rc.mysqld start
09040 11:11:23 mysqld_safe Logging to '/usr/local/var/puppypc.err'.
expr: syntax error
09040 11:11:24 mysqld_safe Starting mysqld daemon with databases from /usr/local/var

Here are related logs inside puppypc.err:
090402 11:25:38 mysqld_safe Starting mysqld daemon with databases from /usr/local/var
090402 11:25:38 [Note] Event Scheduler: Loaded 0 events
090402 11:25:38 [Note] /usr/local/libexec/mysqld: ready for connections.
Version: '5.1.31' socket: '/tmp/mysql.sock' port: 3306 Source distribution


Thanks!
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Thu 02 Apr 2009, 00:09    Post subject:  

Have you tried to run the mysql client from the command line?

open rxvt and enter

#mysql -uroot -pwoofwoof

you can then enter SQL at the mysql prompt such as

>SHOW DATABASES;

and the databases should list...

Is mysqld not showing up in the process list?

Is the mysql.sock showing when you open rox at /tmp ?
Back to top
View user's profile Send private message 
vtrli

Joined: 01 Apr 2009
Posts: 5

PostPosted: Thu 02 Apr 2009, 06:25    Post subject:  

Thanks a lot for your prompt reply Growler,

I have tried using the mysql client and got welcomed and connected.

"Is mysqld not showing up in the process list?"=> I founded the following 2 processes:
/bin/sh/usr/local/bin/mysqld_safe --user=nobody --pi
/usr/local/libexec/mysqld --basedir=/usr/local --data

"Is the mysql.sock showing when you open rox at /tmp ?" => Yes

I still got "404 - Not found" for http://localhost/phpadmin
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Thu 02 Apr 2009, 14:16    Post subject:  

Quote:
I still got "404 - Not found" for http://localhost/phpadmin


Try

Code:
http://localhost/phpMyAdmin/index.php
Back to top
View user's profile Send private message 
vtrli

Joined: 01 Apr 2009
Posts: 5

PostPosted: Sat 04 Apr 2009, 02:16    Post subject:  

http://localhost/phpMyAdmin/index.php => "500 - Internal Server Error"
http://localhost/phpMyAdmin/ => 404 - Not Found
http://localhost/ => Hiawatha greetings and working
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sat 04 Apr 2009, 05:02    Post subject: Bad Link  

I made an error on the wiki page in that the link to the new LAMP-6.11-5.1.31-5.2.8.pet was actually to the old mysql.... pet

Make sure you got the LAMP-6.11-5.1.31-5.2.8.pet file.

Can you tell me what puppy version you are running, is it a full HD install or a frugal/USB/CD/DVD and which .pet you have loaded?
Back to top
View user's profile Send private message 
vtrli

Joined: 01 Apr 2009
Posts: 5

PostPosted: Sat 04 Apr 2009, 08:12    Post subject:  

No problem I installed LAMP-6.11-5.1.31-5.2.8.pet cause i found out the wrong link already.

4.2 using liveCD with large USB drive for pup_save.2fs and pup_420.sfs. Most apps are running fine. Running on 256MB RAM and PIII 800M CPU.

Thanks for investigating.
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sat 04 Apr 2009, 17:11    Post subject:  

Can you check that the Fast CGI php-cgi daemons are running by entering
ps -ef|grep php - the output should be as below:

Code:
# ps -ef |grep php
nobody    4384     1  0 10:00 ?        00:00:00 /usr/local/bin/php-cgi -b 127.0.0.1:2005 -c /etc/php.ini
nobody    4519  4384  0 10:00 ?        00:00:00 /usr/local/bin/php-cgi -b 127.0.0.1:2005 -c /etc/php.ini
nobody    4521  4384  0 10:00 ?        00:00:00 /usr/local/bin/php-cgi -b 127.0.0.1:2005 -c /etc/php.ini
nobody    4523  4384  0 10:00 ?        00:00:00 /usr/local/bin/php-cgi -b 127.0.0.1:2005 -c /etc/php.ini


If it's not then php is not running... try the following:

#/etc/init.d/rc.httpd stop

then check /var/run directory in rox file manager and see if there is a stray php-fcgi.pid This can occur if you get a untimely power failure. If so delete it manually and then restart the hiawatha/php daemons with

#/etc/init.d/rc.httpd start

and then retry

#ps -ef|grep php
Back to top
View user's profile Send private message 
vtrli

Joined: 01 Apr 2009
Posts: 5

PostPosted: Mon 06 Apr 2009, 02:33    Post subject:  

Growler,

You've got it!

It's working now after I restart hiawatha. However, everytime I reboot the system (normal shutdown+start puppy), I still got the same problem (500 internal server err for phpadmin/index.php). I need to manually restart hiawatha to make it work.

Anyway thanks a lot!
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Mon 06 Apr 2009, 04:58    Post subject: Have to restart Hiawatha?  

vtrli said:
Quote:
However, everytime I reboot the system (normal shutdown+start puppy), I still got the same problem (500 internal server err for phpadmin/index.php). I need to manually restart hiawatha to make it work.


I am keen to improve the pet so other's don't have the same issues...
Could you let me know:
1. Do you have to run #/etc/init.d/rc.httpd stop then #/etc/init.d/rc.httpd start each time?
2. Did you find the file /var/run/php-fcgi.pid when hiawatha was not running and have to delete it?
3. Are you shutting down puppy by clicking menu->shutdown then clicking the shutdown or reboot button?

Appreciate the feedback.

One thing you could try is to add the line

Code:
rm -f /var/run/php-fcgi.pid


in the stop section of /etc/init.d/rc.httpd

Thanks for your help with this - of course it works beautifully for me. It might also be due to you using a live CD with a USB pup_save.sfs too - perhaps /etc/init.d/rc.httpd start is not run on boot under your setup as it is on a normal frugal or full install - I'm feeling brave, I will delve into the boot scripts! If that was the case then all you'd need to do is run

#/etc/init.d/rc.httpd start

each time you boot up
Back to top
View user's profile Send private message 
pacchiee


Joined: 30 Sep 2008
Posts: 28
Location: Bengaluru, KA, IN

PostPosted: Fri 17 Apr 2009, 11:50    Post subject:  

Growler,

I was using your LAMP pet with apache php mysql and phpmyadmin (lamp-400.sfs) with no issues till version 4.1.2. But, it doesn't work with 4.2. I don't want hiawatha, can you tell me how I can run lamp-400.sfs on puppy 4.2?
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Fri 17 Apr 2009, 16:39    Post subject: lamp-400.sfs and puppy 4.2  

This sfs was made from slackware binaries - for puppy 3 series. I hadn't expected it would work with 4 series at all.

In my view hiawatha has everything apache does but works faster is more secure and uses less resources ... why would you want to use apache in preference to hiawatha?

The latest .pet works well with 4.2

ftp://puppy:puppylinux@ftp.servage.net/pet_packages/LAMP-6.11-5.1.31-5.2.8.pet
Back to top
View user's profile Send private message 
12mma10

Joined: 05 Nov 2008
Posts: 13
Location: vienna

PostPosted: Thu 30 Apr 2009, 13:08    Post subject: Re: lamp-400.sfs and puppy 4.2  

this link is brocken....

ftp://puppy:puppylinux@ftp.servage.net/pet_packages/LAMP-6.11-5.1.31-5.2.8.pet[/quote]

does someone know an alternativ link?

thanks
martin
Back to top
View user's profile Send private message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Thu 30 Apr 2009, 15:57    Post subject:  

Oh dear - Raffy said I could use this space - it would be great to have a central repository for pets but hey. I will pm raffy and see if he minds me reuploading it

Grrrr
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0473s ][ Queries: 11 (0.0040s) ][ GZIP on ]