Installation problem with PHP4 and Apache
| From: | Murray, Irving \(Corporate, consultant\) | Date: | Wed, 17 Mar 2004 21:12:31 +0000 |
| Subject: | Installation problem with PHP4 and Apache | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-12998@lists.php.net to get a copy of this message | ||
Hello,
I am having a problem trying to install PHP 4.3.4 with Apache 1.3.29 on RedHat 8.0. So far I have
done the following:
1. Installed Apache with
./configure --prefix=/usr/local/apache --enable-shared=max
make
make install
2. Attempted to install PHP with
./configure --with-mysql --with-apxs=/usr/bin/apxs
make
I'm getting the following output from the make:
/bin/sh /usr/local/php-4.3.4/libtool --silent --preserve-dup-deps --mode=compile gcc -DLINUX=2
-DUSE_HSREGEX -I/usr/include -Isapi/apache/ -I/usr/local/php-4.3.4/sapi/apache/ -DPHP_ATOM_INC
-I/usr/local/php-4.3.4/include -I/usr/local/php-4.3.4/main -I/usr/local/php-4.3.4
-I/usr/local/php-4.3.4/Zend -I/usr/local/php-4.3.4/ext/xml/expat -I/usr/local/php-4.3.4/TSRM -g
-O2 -prefer-pic -c /usr/local/php-4.3.4/sapi/apache/sapi_apache.c -o sapi/apache/sapi_apache.lo
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from /usr/local/php-4.3.4/sapi/apache/sapi_apache.c:24:
/usr/local/php-4.3.4/sapi/apache/php_apache_http.h:22:19: httpd.h: No such file or directory
/usr/local/php-4.3.4/sapi/apache/php_apache_http.h:23:25: http_config.h: No such file or directory
/usr/local/php-4.3.4/sapi/apache/php_apache_http.h:33:23: http_core.h: No such file or directory
/usr/local/php-4.3.4/sapi/apache/php_apache_http.h:34:23: http_main.h: No such file or directory
/usr/local/php-4.3.4/sapi/apache/php_apache_http.h:35:27: http_protocol.h: No such file or
directory
/usr/local/php-4.3.4/sapi/apache/php_apache_http.h:36:26: http_request.h: No such file or directory
/usr/local/php-4.3.4/sapi/apache/php_apache_http.h:37:25: http_log.h: No such file or directory
/usr/local/php-4.3.4/sapi/apache/php_apache_http.h:38:25: util_script.h: No such file or directory
/usr/local/php-4.3.4/sapi/apache/sapi_apache.c:28: parse error before '*' token
/usr/local/php-4.3.4/sapi/apache/sapi_apache.c: In function `apache_php_module_main':
/usr/local/php-4.3.4/sapi/apache/sapi_apache.c:30: `OK' undeclared (first use in this
function)
/usr/local/php-4.3.4/sapi/apache/sapi_apache.c:30: (Each undeclared identifier is reported only
once
/usr/local/php-4.3.4/sapi/apache/sapi_apache.c:30: for each function it appears in.)
/usr/local/php-4.3.4/sapi/apache/sapi_apache.c:40: `display_source_mode' undeclared (first use
in this function)
/usr/local/php-4.3.4/sapi/apache/sapi_apache.c:45: `NOT_FOUND' undeclared (first use in this
function)
make: *** [sapi/apache/sapi_apache.lo] Error 1
The .h files that aren't being found are in /usr/local/apache/include. I confirmed apxs is in
/usr/bin. I've looked through the documentation and archives and haven't seen anything
that looks like a cause.
Any suggestions would be greatly appreciated. Thanks.