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 23 Apr 2014, 02:53
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Monkey WebServer- Need to install few extras.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: Sun 06 Nov 2005, 00:58    Post subject:  Monkey WebServer- Need to install few extras.  

How do I install php in the monkey webserver?
(Note; I tried that other webserver, just down below a few threads, and it was EXTREMELY confusing) I like Monkey becaues it just works.

All I need now is php support, and a MYSql database.
How would I go about doing that?
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 06 Nov 2005, 06:06    Post subject:  

PHP:

Install the PHP-Dotpup from this thread:
http://www.murga.org/%7Epuppy/viewtopic.php?t=3446

Now edit /root/monkey/conf/monkey.conf

There is a section with PHP.
Add these lines:
AddScript application/x-httpd-php /usr/local/wwwroot/php/bin/php php
AddScript application/x-httpd-php /usr/local/wwwroot/php/bin/php php3

Stop and start monkey.
Now click on the Link: PHP: phpinfo(); in the Monkey-site in Mozilla.
You might have to reload it in Mozilla, if you clicked it before.

Now you should see
PHP works!
</BODY>
</HTML>

So, it works, but obviously wrong.
In the index.php, they forgot to set a "<head></head>".
This usually should not matter, but here it does.

So replace index.php with this file:

Code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<?
//
// Your PHP support is not working...
//
//
   echo "PHP works!";
?>
<pre>
<?
system("ls -al");
?>
</pre>

</BODY>
</HTML>


Now you should see a directory-listing when you reload.

Concerning MySQL:
As there is no Dotpup yet (except xampp), you will have to try to get it from another distro, compile it yourself, or rip it from xampp.
As the MySQL-Setup can be somewhat annoying, I don't plan to release a dotpup.


The php-dotpup uses 9 MB of space.
Apache with mod_php uses 18 MB and is faster.
If you could tell me, what confused you using Apache, I might help you.

Mark
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0371s ][ Queries: 12 (0.0044s) ][ GZIP on ]