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 27 Aug 2014, 11:23
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
How to add PHP to Hiawatha server?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 9 [123 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
Author Message
taylor


Joined: 22 Feb 2008
Posts: 10
Location: Manjimup, Western Australia

PostPosted: Sun 02 Aug 2009, 07:05    Post subject:  

I have not had any success with Hiawatha. I downloaded the
LAMP-6.14-5.1.34-5.2.9.pet and using the Puppy package manager
installed it to my Puppy 4.2 machine. After installation the Package
Manager informed me that the installation was missing libmcrypt.so.4
This did not sound too serious as I only want the server to check out
the perl scripts for my web site. Whatever I did to the config file I
could not persuade Hiawatha to serve any pages at all! But worse
still Puppy can no longer find my serial modem for the dial-up
internet connection.

I have now had the Puppy package manager remove Hiawatha but Puppy can
still not find my serial modem and I am faced with possibly having to
back up all my stuff and reload Puppy Linux completely from the CD
unless someone can point me to the likely source of the corruption and
suggest a fix.

Meanwhile I am posting this from my antique RISC OS machine into which
I have plugged that same invisible modem. I have been successfully
using WebJames on this old machine for years to check my web page
scripts but I feel that it is time that I made the effort to use more
modern equipment.

--
David Taylor
http://member.eezi.net.au/taylor
Back to top
View user's profile Send private message Visit poster's website 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Sat 15 Aug 2009, 20:48    Post subject:
Subject description: Hiawatha 6.16
 

I recompiled Hiawatha 6.16 (latest) and added everything else that growler had already packaged.

Hiawatha - 6.16
mysql -5.1.35
php - 5.2.9

You can get the pet from here:
http://tipsforeveryone.com/downloads/LAMP-6.16-5.1.35-5.2.9.pet

Here is the changelog from the Hiawatha website:
Quote:

hiawatha (6.16) stable; urgency=medium

* Main configuration file httpd.conf renamed to hiawatha.conf.
* Improved error detecting and logging in php-fcgi.
* RunOnDownload option added.
* Small bugfixes and improvements.
* Bugfix: repeated PIDs in php-fcgi.pid with multiple servers.
* Bugfix: incorrect extended log format.
* Bugfix: crash on too long StartFile in .hiawatha file.


Edited The links in this post and the next one were edited as growler had found a problem and has fixed it now.

_________________
Macpup - The beauty of linux | Pritlog - Simple blog app

Last edited by prit1 on Sun 16 Aug 2009, 12:34; edited 2 times in total
Back to top
View user's profile Send private message 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Sun 16 Aug 2009, 00:21    Post subject:  

Here is another link for downloading the pet.
http://dotpups.de/puppy4/dotpups/Internet/LAMP-6.16-5.1.35-5.2.9.pet

(thanks to MU and growler)

_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4340

PostPosted: Mon 17 Aug 2009, 01:02    Post subject:  

I compiled hiawatha against dietlibc in case anyone would like to test it

I didn't add the variables for /var and /etc so they are in /opt/diet/ {var,etc}

I also came across this page which looks to be a nice small PHP alternative

http://dev.pedemont.com/libphp/

is there any reason not to use sqlite instead of mysql?
hiawatha-6.16-i486.pet
Description  statically compiled against dietlibc
pet

 Download 
Filename  hiawatha-6.16-i486.pet 
Filesize  108.24 KB 
Downloaded  500 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Mon 17 Aug 2009, 02:16    Post subject:  

Sqlite support is already present in the PHP, Hiawatha package. MySQL is another option for DB provided as it is used widely in popular apps.
_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1678
Location: Baltimore, Maryland USA

PostPosted: Mon 17 Aug 2009, 11:35    Post subject:  

prit1 wrote:
Here is another link for downloading the pet.
http://dotpups.de/puppy4/dotpups/Internet/LAMP-6.16-5.1.35-5.2.9.pet


Feeling dense, tlchost wonders why when the pet is loaded that browsing to localhost/index.php nothing shows at all? Running the script in /etc/init.d doesn't solve the problem.

Go ahead, tell me I missed something obvious like turning on the computer...I'm here to learn.
Back to top
View user's profile Send private message Visit poster's website 
8-bit


Joined: 03 Apr 2007
Posts: 3364
Location: Oregon

PostPosted: Mon 17 Aug 2009, 17:34    Post subject:  

I got Hiawatha up and running.
As to your question, try opening a terminal and type in
'hiawatha.run start'
You should get a message saying it is already running if indeed it is.
I also found that it uses the index.php file in /root/httpd/hiawatha as default.
Also, you can just open the browser and type http:/localhost/
in the address bar and that will pick up that index.php file.
I even went so far as to dl the source for the files page on puppylinux.ca and if I name it as index.php in the above subdirectory, it loads and displays file.
Also, as another test, with the file in my /mnt/home directory, and having one of the files the page lists there, I was able to download it so to speak to my home directory.

But I should mention that to get hiawatha to start, I had to uninstall and reinstall Lamp.
Back to top
View user's profile Send private message 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Mon 17 Aug 2009, 22:38    Post subject:  

I just tested this again and it works fine for me. Installed it fresh and browse to http://localhost to see the phpinfo page there.

What does this command show?
Code:
ps aux | grep hiawatha


If Hiawatha is running, one of the lines should contain
Code:
/usr/sbin/hiawatha -c /etc/hiawatha


if this line is not shown, then Hiawatha is not running. In this case try running hiawatha.run start and let us know the errors (if any) it shows.

_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1678
Location: Baltimore, Maryland USA

PostPosted: Mon 17 Aug 2009, 23:22    Post subject:  

prit1 wrote:
I just tested this again and it works fine for me. Installed it fresh and browse to http://localhost to see the phpinfo page there.

What does this command show?
Code:
ps aux | grep hiawatha


root 1192 0.0 0.0 1648 564 pts0 R+ 23:16 0.00 grep hiawatha

prit1 wrote:

If Hiawatha is running, one of the lines should contain
Code:
/usr/sbin/hiawatha -c /etc/hiawatha


if this line is not shown, then Hiawatha is not running. In this case try running hiawatha.run start and let us know the errors (if any) it shows.


command not found

I'm running Puppy from a bootable USB..could that be the problem?
Back to top
View user's profile Send private message Visit poster's website 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Tue 18 Aug 2009, 00:20    Post subject:  

Looks like the pet never got installed properly.

Can you try running petget from the command line and post any errors?
Code:
petget LAMP-6.16-5.1.35-5.2.9.pet


Also, if a previous version of the LAMP pet was present, try removing that before installing this new one. You can backup any data you had to another directory and restore it later.

_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1678
Location: Baltimore, Maryland USA

PostPosted: Tue 18 Aug 2009, 05:21    Post subject:  

prit1 wrote:

Can you try running petget from the command line and post any errors?
Code:
petget LAMP-6.16-5.1.35-5.2.9.pet


/usr/sbin/petget line 1338 25725 Terminated

/usr/sbin/petget line 1417 25782 Terminated
Back to top
View user's profile Send private message Visit poster's website 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Tue 18 Aug 2009, 11:19    Post subject:  

Does it show any additional errors or warnings at all? This just says that petget is not working on your installation. Otherwise there would be additional information about starting mysql and hiawatha.

Did you download the latest link or from the earlier link? The earlier link had a problem and growler fixed it and I posted the corrected link. Also, do you have enough space on your USB? The pet is 11MB and will expand further when installing.

_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1678
Location: Baltimore, Maryland USA

PostPosted: Tue 18 Aug 2009, 13:13    Post subject:  

prit1 wrote:
Does it show any additional errors or warnings at all? This just says that petget is not working on your installation.


Nope...that's all I got.

prit1 wrote:

Did you download the latest link or from the earlier link? The earlier link had a problem and growler fixed it and I posted the corrected link. Also, do you have enough space on your USB? The pet is 11MB and will expand further when installing.


Not sure which link I used...I will have to retry them one by one.

I have 1.3 gig of space left...I believe that's enough.
Back to top
View user's profile Send private message Visit poster's website 
prit1


Joined: 03 Jan 2008
Posts: 540
Location: Los Angeles

PostPosted: Tue 18 Aug 2009, 13:27    Post subject:  

Yeah, please try this link. Lets see if this works.
http://dotpups.de/puppy4/dotpups/Internet/LAMP-6.16-5.1.35-5.2.9.pet

_________________
Macpup - The beauty of linux | Pritlog - Simple blog app
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1678
Location: Baltimore, Maryland USA

PostPosted: Tue 18 Aug 2009, 17:30    Post subject:  

prit1 wrote:
Yeah, please try this link. Lets see if this works.
http://dotpups.de/puppy4/dotpups/Internet/LAMP-6.16-5.1.35-5.2.9.pet


Downloaded it....and to be safe, before I installed, I drove to the local Native American Cultural Center and visited with the Shaman. I asked if he could help me with Hiawatha.

Alas, he knows no more than I do...so Hiawatha still don't work, even if the ps aux results were as you stated in a previous smoke signal. I do recall him muttering something about the Apache tribe being held in high regard.

Thom
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 4 of 9 [123 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0895s ][ Queries: 13 (0.0062s) ][ GZIP on ]