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 26 Nov 2014, 14:48
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 Posts_count  
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: 13644
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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0429s ][ Queries: 12 (0.0043s) ][ GZIP on ]