The time now is Sat 23 Jan 2021, 13:22
All times are UTC - 4 |
Author |
Message |
Nathan F

Joined: 08 Jun 2005 Posts: 1760 Location: Wadsworth, OH (occasionally home)
|
Posted: 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.
/pub/Linux/distributions/damnsmall/mydsl/system
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.
Code: | # --------------------
# 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.
Code: | 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.
Nathan
Last edited by Nathan F on Wed 20 Jul 2005, 14:15; edited 1 time in total
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: 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 Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
raffy
Joined: 25 May 2005 Posts: 4843 Location: Manila
|
Posted: 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
|
|
 |
|
|
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.0307s ][ Queries: 11 (0.0056s) ][ GZIP on ] |