Click to See Complete Forum and Search --> : Compiling PHP4 with Apache 3.9.12


Anon
06-27-2000, 04:39 AM
Hello everybody,

I'm trying to compile PHP4.0.0 with Apache 3.9.12 on linux (Mandrake 6.1). The Apache tarball (tar.gz) is uncompressed in /usr/local/src as well as the PHP tarball.
I follow all the instruction in the INSTALL file from the PHP directory but when I run this command :
./configure --with-apache=/usr/local/src/apache

I've got a error telling me that he's unable to find the http.conf in this directory.

So I moved the source directory to /usr/local/apache (defautl path for PHP4) and the compilation work find :-)

How can I change de defult directory (in which file) ? Why ./configure does not find the http.conf when I use a different path ?

Thank you for your reply and I'm sorry form my english :-)

Anon
06-28-2000, 10:33 PM
Mikael,

I just finished the same process you're going through - when I untar'd the Apache file, it gave me a directory called 'apache_1.3.12' from your description, it sounds like you may have left off part of the directory name.

Be careful with the LoadModule / AddModule statements that the PHP4 install puts into the httpd.conf file - they should be at the end of the long lists, or you can manually insert them right after the php3 module lines. The install program automatically put the commands way down in the file under some commented out code for accepting Netscape Gold publish connections. After I moved them, everything was happier.

J!M

Anon
06-29-2000, 03:47 AM
Hello Jim,

You are right. When I untar'd the Apache file, it gave me /usr/local/src/apache_1.3.12
but when I compiled PHP with :
./configure --with-apache=/usr/local/src/apache_1.3.12
it told me that it couldn't find httpd.conf in /usr/local/src/apache_1.3.12 :-(
I renamed the directory to apache but it produced the same error. The only may to make the compîlation succes is to move the directory to /usr/local/apache (default path).