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 Tue 30 Jun 2015, 12:45
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
A fairly simple php install (in Monkey server)
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Nathan F

Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 20 Jul 2005, 12:21    Post_subject:  A fairly simple php install (in Monkey server)  

Several people have asked recently on the forum about how to get php running in Puppy. This is how I did it. I'm assuming that this will be done with the Monkey-ws.

I've become quite fond of getting binaries from DSL. They usually work just fine in Puppy and don't take much work to get running. I used gftp and went to the ibiblio mydsl section.


I scrolled down until I found php-4-monkey-09. I selected the package and transferred it to my HD. Note that there are several files with almost the same name-choose the one that is largest. I then untarred it to /mnt/data/Share. This could be placed anywhere, however.

By default this will create /opt in the location you send it to. I opened /mnt/data/Share/opt and found two directories, /monkey and /php. I then moved the /php directory to /mnt/data/Share. Once again this can be placed anywhere in your filesystem.

Next I edited my monkey config file to show it where to find php. Here are the appropriate lines with my addition.

#  --------------------
#   AddScript application/x-httpd-php /home/my_home/php/bin/php php
#   The above example defines that whatever file, it's extension being
#   "php", should be processed through by "/home/my_home/php/bin/php"

AddScript application/x-httpd-php /mnt/data/Share/php/bin/php php

#AddScript application/x-httpd-php /home/my_home/php/bin/php php
#AddScript application/x-httpd-php /usr/bin/php php3

If you have placed php in for instance /root/my-applications then the AddScript line would change as follows.

AddScript application/x-httpd-php /root/my-applications/php/bin/php php

Next I restarted monkey and navigated to /php/index.php in my browser getting the Php works! message.

I hope this helps someone else out. I tried to show every step. This is not the only way to do it but it worked well for me and kept me from having to compile.


Back to top
View user's profile Send_private_message AIM YIM MSNM 
Official Crustacean

Joined: 04 May 2005
Posts: 15121
Location: Paradox Realm

PostPosted: Wed 20 Jul 2005, 13:05    Post_subject:  

well worth putting in a new section in the wiki

- someone can have a go . . .

to create a new section go to somwhere relevant or sandbox (check the index)

create a Camel case Entry eg ProgrammingPHP or ProgrammingPuppy

click on the entry
doubleclick on the page and cut and paste from the above

let us know how you got on . . .

Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 

Joined: 25 May 2005
Posts: 4825
Location: Manila

PostPosted: Tue 26 Jul 2005, 10:20    Post_subject: Thanks!!!  

Nice tip there, Nathan, will try it this weekend.

While i did share a php tarball here in the forum, the environment where it came from is not as sparse as Puppy or MyDSL. So your news is most welcome!

Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot attach files in this forum
You can download files in this forum

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