Monkey WebServer- Need to install few extras.

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
flamesage
Posts: 214
Joined: Sat 02 Jul 2005, 00:39

Monkey WebServer- Need to install few extras.

#1 Post by flamesage »

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?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

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: Select all

<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

Post Reply