How to add PHP to Hiawatha server?

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#61 Post by prit1 »

What are the outputs from

Code: Select all

ps aux | grep hiawatha
and

Code: Select all

hiawatha.run
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#62 Post by prit1 »

Thom,

What version of Puppy are you using? I tested this on 4.2.1 and 4.3 Beta and it works well. However I tested this on 4.2 SMP and it did not work. It gives a error "error redirecting stdout".
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#63 Post by tlchost »

prit1 wrote: What version of Puppy are you using? I tested this on 4.2.1 and 4.3 Beta and it works well. However I tested this on 4.2 SMP and it did not work. It gives a error "error redirecting stdout".
I'm using 4.21 retro....let me try to download again....I suspect a problem here....had a similar issue with an iso. I have downloaded it to 3 locations...all the sizes are the same.

Thom

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#64 Post by prit1 »

I just finished testing in 4.2retro and 4.21retro and it worked fine.

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#65 Post by tlchost »

prit1 wrote:I just finished testing in 4.2retro and 4.21retro and it worked fine.
Started out with a fresh puppy421retro ... hiawatha or xampp had never been installed. Installed pet file.....when I browsed to localhost, I saw the Hiawatha page....but when I browsed to localhost/index.php I see nothing. Looks like php is not running.

Thom

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#66 Post by prit1 »

Thom,

Can you post the output from running /etc/init.d/rc.httpd stop and /etc/init.d/rc.httpd start ?
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

debugging Hiawatha problem

#67 Post by growler »

A few thoughts:

1. Check that mysql is running - check the processes and see if there is a mysql - or from a command line rxvt try

ps -ef|grep mysql

or type

mysql -uroot -pwoofwoof

this should return the mysql client program for entering sql to administer databases.

I am wondering if the .pet that you installed is in fact the full LAMP one or just the hiawatha - this would explain why you get the static hiawatha test page but not the php one. If you have mysql going then this confirms you have the LAMP .pet

2. We know hiawatha is running because you have output of index.html hiawatha test page. Are the three php daemons running type

#ps -ef|grep php

at the command line - there should be three lines showing php-fcgi processes. I suspect these kids are not running for some reason.
If not....
type:

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

to stop then start hiawatha (and associated php-fcgi daemons)

check to see if php-fcgi is now going

#ps -ef |grep php

look for the three php-fgi processes

still no go?

3. Check the output of attempting to run php-cgi from the command line - type

#php-cgi > /root/outputofphp.txt

Then post the output here.

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

debugging Hiawatha problem

#68 Post by growler »

double post whoops!
Last edited by growler on Wed 19 Aug 2009, 20:53, edited 1 time in total.

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

debugging Hiawatha problem

#69 Post by growler »

three times just to be sure!

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

Re: debugging Hiawatha problem

#70 Post by tlchost »

growler wrote:A few thoughts:

1. Check that mysql is running - check the processes and see if there is a mysql - or from a command line rxvt try
ps -ef|grep mysql
or type
mysql -uroot -pwoofwoof
apparently not running
cannot connect to mysql server

[quote="growler"
I am wondering if the .pet that you installed is in fact the full LAMP one or just the hiawatha - this would explain why you get the static hiawatha test page but not the php one. If you have mysql going then this confirms you have the LAMP .pet
[/quote]
Sure do look like I don't have the whole enchilada.
There is no php at all in /usr/local/lib

I tried to find it from some other threads...but all I get is dead links and page not found errors.

If it's available for download, let me know where.

Thanks
Thom

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

Enchiladas

#71 Post by growler »

Is your LAMP_6.16-5.1.35-5.2.9.pet around 11 Meg!

Hiawatha on its own is just 116k so there would be quite a size difference between a hiawatha.pet and the "whole enchilada" - the real meat (do enchiladas contain meat?) is in mysql - PHP would be about a Meg compressed.

You can have a look at the contents of the .pet you are running by making a copy of it and renaming it - taking off the .pet and adding .tar.gz then looking at the archive in archiver. This will tell you if you have mysql files and php in there. If you are not running the above .pet then it is unlikely you'll have the files

/etc/init.d/rc.mysqld
/etc/init.d/rc.httpd

these kids are the ones that start the daemons on boot and are only part of the LAMP .pet above.

Just to confirm the PHP Mysql Hiawatha (LAMP) pet is at:

http://dotpups.de/puppy4/dotpups/Intern ... -5.2.9.pet

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

Re: Enchiladas

#72 Post by tlchost »

growler wrote:Is your LAMP_6.16-5.1.35-5.2.9.pet around 11 Meg!
yes.....and I downloaded the one you cited, installed it in a fresh Puppy4.21Retro-bootable USB
growler wrote: If you are not running the above .pet then it is unlikely you'll have the files

/etc/init.d/rc.mysqld
/etc/init.d/rc.httpd

these kids are the ones that start the daemons on boot and are only part of the LAMP .pet above.
/etc/init.d/rc.mysqld
090820 04:09:04 mysqld_safe Logging to '/usr/local/var/puppypc.err'.
090820 04:09:04 mysqld_safe Starting mysqld daemon with databases from /usr/local/var
090820 04:09:04 mysqld_safe mysqld from pid file /usr/local/var/mysql.pid ended

/etc/init.d/rc.httpd
stopping PHP Fast-CGI daemons
starting PHP Fast-CGI daemons
PHP Fast-CGI exited with code 256
Error binding 0.0.0.0:80

Thom

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

USB install

#73 Post by growler »

Running out of ideas - I need to try to install on a USB stick and see if I get the same error.

Looks like there may be some permissions issue with USB install for hiawatha - it runs as nobody - there could be permissions issues. I am not too clear on the inner workings of USB installs but I am thinking this is a factor.
Cannot bind ... port 80
Is there some restriction on networking with a USB install??
Is there a firewall blocking port 80?

Sorry I can't understand why this doesn't work for you.

Have you tried it on a frugal HD or full HD install? I've only tested it in these environments. I believe that someone else got into trouble trying to remaster with the pet installed - although puppymartin must have figured that out in his webserver pupplet. I am sure it would have been permissions issues.

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#74 Post by prit1 »

Uually I've seen the "error binding to port 80" error when an instance of Hiawatha is already running or when some other program is using to serve through port 80.
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

Re: USB install

#75 Post by tlchost »

growler wrote: Have you tried it on a frugal HD or full HD install? I've only tested it in these environments. I believe that someone else got into trouble trying to remaster with the pet installed - although puppymartin must have figured that out in his webserver pupplet. I am sure it would have been permissions issues.
I suspect that the combination of programs don't like the USB install. I only do USB installs in order to have everything portable.

Xampp works fine.....Apache, MySQL, PHP and MyPhpAdmin all function.

Thanks for all the efforts.....sorry it doesn;t work for me.

Thom

rextan
Posts: 1
Joined: Sat 05 Sep 2009, 12:28

Recompile PHP with shmop parameter

#76 Post by rextan »

Hi,

I have installed php with the hiawatha pet.

I need to use shared memory in my PHP program. To use this, I need to compile php with the --enable-shmop parameter in the configure line.

I am terribly new at this, can someone please help

Thanks

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#77 Post by edoc »

I need mysql in order to get MythTV working.

I came upon this Hiawatha thread and saw it as one way to get mysql - since neither mysql nor sql show up as available via Puppy Package Manager.

QUESTIONS:

1. What is the best way to get mysql on Puppy Exprimo, please?

2. Is Hiawatha for Puppy an abandoned project?

3. Has something better replaced it?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

aarf

#78 Post by aarf »

edoc wrote:I need mysql in order to get MythTV working.

I came upon this Hiawatha thread and saw it as one way to get mysql - since neither mysql nor sql show up as available via Puppy Package Manager.

QUESTIONS:

1. What is the best way to get mysql on Puppy Exprimo, please?

2. Is Hiawatha for Puppy an abandoned project?

3. Has something better replaced it?
search xampp

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#79 Post by edoc »

Is this the right way to go?
PHP install with XAMPP
http://www.asialinux.blogspot.com/

We try so many time to make php code work well with puppylinux, which we had got assistance from puppylinux chat room, so we found XAMPP, which make puppylinux work well.
Where download XAMPP
http://www.apachefriends.org/en/xampp-linux.html

http://www.apachefriends.org/en/xampp-linux.html#372

Code: Select all

install

cd /folder/where/I/have/xampp

copy xampp-linux-1.7.tar.gz to opt

extract it using this line code: tar xvfz xampp-linux-1.7.tar.gz -C /opt

open an other terminal

and go to /opt/lampp

go to the lampp directory

and type: ./lampp start

for try your php scripts, you must save all it at the htdocs folder inside lampp directory

test:

http://localhost if finish start lampp

(how to create short cut to start xampp)

create script to make a shortcut

#!/bin/sh

cd /

cd opt/lampp

./lampp start
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

aarf

#80 Post by aarf »

yes that's it.

Post Reply