Hi all
I'm trying to install php 4.0.3pl1 on my RedHat Linux 6.2 box (2.2.14-5.0 kernel) and have been having some problems. I have downloaded apache 1.3.14 and have been trying for awhile now to compile apache with php4 module support (I also want mysql support for the php module).
PHP compiles fine - I used
./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.14
make
make install
but when I try to compile apache (using
./configure \
"--with-layout=Apache" \
"--prefix=/usr/local/apache" \
"--enable-rule=SHARED_CORE" \
"--with-apxs=/usr/sbin/apxs" \
"--add-module=/src/modules/standard/mod_so.c" \
... etc (other standard modules)
"--add-module=/src/modules/php4/mod_php4.c" \
"$@"
) it fails when it gets to the php4 module (other modules work fine) with:
mod_php4.c:28: zend.h: No such file or directory
mod_php4.c:29: php.h: No such file or directory
mod_php4.c:30: php_variables.h: No such file or directory
mod_php4.c:47: php_ini.h: No such file or directory
mod_php4.c:48: php_globals.h: No such file or directory
mod_php4.c:49: SAPI.h: No such file or directory
mod_php4.c:50: php_main.h: No such file or directory
mod_php4.c:52: zend_compile.h: No such file or directory
mod_php4.c:53: zend_execute.h: No such file or directory
mod_php4.c:54: zend_highlight.h: No such file or directory
mod_php4.c:55: zend_indent.h: No such file or directory
mod_php4.c:57: ext/standard/php_standard.h: No such file or directory
mod_php4.c:61: mod_php4.h: No such file or directory
make[4]: [mod_php4.o] Error 1
make[3]: [all] Error 1
make[2]: *** [subdirs] Error 1
I though that PHP would put all the files in the right place for apache to compile, but I am obviously doing something wrong - I just can't see what.
I have been searching the net but most PHP stuff I have found has not mentioned recompiling apache, or anything like that. I'm not even sure if I'm using the right method but I wanted to use DSO support.
Any help would be greatly appreciated.
- Nick Lane