Click to See Complete Forum and Search --> : PHP4 with Apache 2 (2.0.16)


Anon
05-02-2001, 09:26 AM
I'm trying to get a static version of php compiled into apache 2.0.16 Beta.

./configure --with-apache=/root/httpd-2_0_16

It bombs with an error about not finding httpd.h

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS... no
checking for Apache module support... no
configure: error: Invalid Apache directory - unable to find httpd.h under /root/httpd-2_0_16

httpd.h is actually in /root/httpd-2_0_16/include

Has anyone got PHP4 (php-4.0.2) to work with apache 2 yet?

Anon
05-03-2001, 05:01 PM
I know that apache install files have a step by step instruction on how to compile php statically.

I've compiled PHP as a static module about 5 times using apache 1.3.17 on different machines, and it works great.

Di

Anon
04-11-2002, 01:15 PM
We have detected a problem in PHP 4.1.2's configure script when installing as a static module with httpd-2.0.35.

You should edit the "configure" file and pay attention to the following paths:

- the path $withval/src/include/* seems to be wrong. It should be replaced with $withval/include/*

- the path $withval/src/lib/* also seems to be wrong. It should be replaced with $withval/srclib/*

You should make the changes in a few lines, just in the section with a comment referencing Apache2.

After making this change the installation went smoothly. Good luck.

Anon
06-19-2002, 05:14 PM
Hi,

I have the same problem but this fix did not help me. Any ideas?

Redhat Linux 7.3
php4.0.4pl1
Apache 2.0.36

Thanks. :)

dinesh
07-09-2002, 04:22 AM
Hi,
I need to compile php statically with xml,xsl,zip,imap with apache 1.3.20.Could u please help me on how u acheived the same with apache 1.3.17.

Regards,
Dinesh