Click to See Complete Forum and Search --> : error in compiling PHP and Apache


CyberOsc
01-25-2001, 08:25 AM
I use Apache as the Static Module.
And I use PHP 4.0.2 as Apache Module.

My configuration is :
./configure --with-apache=/path/to/apache --with-gd=/path/to/gd --with-mysql=/path/to/mysql --enable-track-vars

Now I try to add some new modules : LDAP modules.
./configure --with-apache=/path/to/apache --with-gd=/path/to/gd --with-mysql=/path/to/mysql --with-ldap=/path/to/ldap --enable-track-vars

Everything is okay when I compile my PHP.
But when I recompile my Apache :
$./configure --activate-module=src/modules/php4/libphp4.a
$make
It returned an error and failed.

I don't know why ??
Everything seems to be just right .. but I can't make it..

Please help !!

NB : I use OpenLDAP 2.7.0

Thanks in advance




------------------
** It's the world of Oscario **

nanode
01-25-2001, 11:57 AM
I'm not using LDAP, but otherwise those exact steps work for me. I've done this numerous times with various versions (of each) on a few different Unixes.

Do you possibly have multiple apache source trees, and your PHP compile is getting confused?

Double check that libphp4.a is getting built and make sure it's in the correct location.

This is exactly what php.net says:
1. gunzip apache_1.3.x.tar.gz
2. tar xvf apache_1.3.x.tar
3. gunzip php-x.x.x.tar.gz
4. tar xvf php-x.x.x.tar
5. cd apache_1.3.x
6. ./configure --prefix=/www
7. cd ../php-x.x.x
8. ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
9. make
10. make install
11. cd ../apache_1.3.x
12. ./configure --activate-module=src/modules/php4/libphp4.a
13. make
14. make install
15. cd ../php-x.x.x
16. cp php.ini-dist /usr/local/lib/php.ini
17. Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php

18. Use your normal procedure for restarting the Apache server. (You must
stop and restart the server, not just cause the server to reload by
use a HUP or USR1 signal.)



Good luck

klamath
01-25-2001, 02:31 PM
I use Apache as the Static Module.

That doesn't make any sense.


$make
It returned an error and failed.


Tell us the error! We can't help you otherwise.

BTW, why is this in the programming forum?

------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Tornado HTTP Server (http://sourceforge.net/projects/tornado)