Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
To install Apache and PHP download apache2.0.53 and php5
Install for Apache
tar -zxvf httpd2.versionNumber
./configure --prefix=/usr/local \ --enable-mods-shared=most \ --enable-modules=all
Install for php
./configure --with-mysql \ --with-apxs=/usr/local/apache2/bin/apxs
edit the apache's conf file and make the following edits. Make sure that under LoadModule you have the following LoadModule php5_module libexec/libphp5.so. Also If you are being prompted to download you php scripts make sure the following is in apache. Under ClearModule list the following should be there AddModule mod_php5.c
Also add the following
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
edit the DirectoryIndex
DirectoryIndex index.php index.htm index.html default.php
check /usr/bin for apache2ctl if not there then issue the following command