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 Thu 24 Apr 2014, 13:59
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 [3 Posts]  
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.

/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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
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 poster's website 
raffy

Joined: 25 May 2005
Posts: 4752
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 from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0465s ][ Queries: 11 (0.0072s) ][ GZIP on ]