The time now is Mon 23 Apr 2018, 15:46
All times are UTC - 4 |
Author |
Message |
flamesage

Joined: 01 Jul 2005 Posts: 214
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
|
|
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.0260s ][ Queries: 12 (0.0036s) ][ GZIP on ] |