Hi,
you try to compile php into apache, probably you should think about an
alternative, to compile php as an module of apache, (so you dont have to
recompile everytime you upgrade your apache and in the other way). In the
other way, if you have to, or if you want to compile it into apache a hint:
locate the directory of the Header files... add this directory temporarily
to your PATH variable (PATH=$PATH:/your/path;export PATH) and try to compile
it again...
if you want to compile at as module: first configure and make apache (with
all the thinks you want minus php, plus --enable-module=so (this is the
module, which is needed to execute an moduled php)
then.. configure your php and add the
option --with-apxs=/your/path/to/apache/bin/apxs .. now, make "make && make
install" and remove the option --with-apache .. this should work..
Greetings,
Stefan Siefert
-----Ursprüngliche Nachricht-----
Von: Olav Hjertaker [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Juli 2001 11:08
An: [EMAIL PROTECTED]
Betreff: [PHP-INST] Problems installing PHP with Apache
Hi!
I'm trying to install apache with PHP under linux, but I'm having some
trouble...
I've tried to install it on two machines, with 3 versions of PHP (4.03,
4.0.5, 4.0.6), and 3 versions of apache web server.
I always get the same errors.
====
in the Apache source dir:
/configure
in the PHP dir:
/configure --with-mysql --with-apache=../apache_1.3.19
--enable-track-vars --enable-sockets
make ; make install
back in the Apache dir:
/configure --prefix=/usr/local/apache --enable-module=rewrite
--activate-modulesrc/modules/libphp4.a
make
===============
There are header files it cannot find:
-------------------
mod_php4.c:28:18: zend.h: No such file or directory
mod_php4.c:29:17: php.h: No such file or directory
mod_php4.c:30:27: php_variables.h: No such file or directory
mod_php4.c:47:21: php_ini.h: No such file or directory
mod_php4.c:48:25: php_globals.h: No such file or directory
mod_php4.c:49:18: SAPI.h: No such file or directory
mod_php4.c:50:22: php_main.h: No such file or directory
mod_php4.c:52:26: zend_compile.h: No such file or directory
mod_php4.c:53:26: zend_execute.h: No such file or directory
mod_php4.c:54:28: zend_highlight.h: No such file or directory
mod_php4.c:55:25: zend_indent.h: No such file or directory
mod_php4.c:57:39: ext/standard/php_standard.h: No such file or directory
make[4]: *** [mod_php4.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/tmp/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/tmp/apache_1.3.19'
make: *** [build] Error 2
--------------------------------
Does anyone know why this happens?
Cheers,
Olav
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]