Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems compiling PHP 4.3.4 with Apache 2.0 on RH9

Status
Not open for further replies.

EV1772

Technical User
Jul 31, 2002
31
US
Hi all,

I was wondering if someone could help me with this.

I'm on an RH9 box with Apache 2.0 installed and running. I get the default index.html page when I connect from other workstations but I'm trying to access a PHP page that I created.

I've downloaded and configured PHP 4.3.4 to be compiled with Apache but if I do an apachectl -l, I get the following:

Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c


So I'm assuming that PHP is still not compiled with Apache 2.0. I've made the necessary changes to my httpd.conf file and have made sure that libphp4.so is in my modules directory. I've restarted the web server but still cannot access a php file that I created and placed in my Document Root.

I think I've added the correct extensions in my Directory Index:

DirectoryIndex index.html index.html.var index.php index.php3 index.php4

but I could be wrong.

I've also added the following to my php.ini file:

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = On

doc_root = /usr/local/apache2/htdocs

extension_dir = /usr/local/apache2/modules


I don't know what I'm doing wrong here. Is it a problem with permissions when making changes to the httpd.conf file?

Thanks in advance for any advice!
 
Hi! Thanks for the reply! Sorry I couldn't respond earlier.

I installed PHP using the following configure command:

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php --with-apxs=/usr/local/apache2/bin/ --with-mysql=/usr/local/mysql/ --enable-track-vars --enable-magic-quotes --enable-debugger

Is there anything else I need to compile PHP?

Thanks for your help!
 
When I try to access my php page which is in the Document Root, I get the default "Object Not Found" page which is included in the index.html file.

I type in and I get the "Object Not Found" message.
 
SUCCESS!!!

I finally found out what was wrong! Apparently Red Hat 9 comes configured with Apache 2 and PHP. I needed to uninstall the previous versions and then reinstall Apache 2.0.47 and PHP 4.3.4 from the source files. I found this out from:


Thanks guys!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top