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!
Notices
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.
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,032
Rep:
OK, Lets get back to basics. First was php with your system or did you install yourself? Second if you did complie the program yourself how did you do it? What version are you using?
Distribution: (Home)Opensolaris, Ubuntu, CentOS, (Work - AIX, HP-UX, Red Hat)
Posts: 2,032
Rep:
To install Apache and PHP download apache2.0.53 and php5
Install for Apache
Code:
tar -zxvf httpd2.versionNumber
./configure --prefix=/usr/local \ --enable-mods-shared=most \ --enable-modules=all
make
make install
Install for php
Code:
./configure --with-mysql \ --with-apxs=/usr/local/apache2/bin/apxs
make
make install
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.