AW: [PHP-INST] Problems installing PHP with Apache

From: Date: Mon, 09 Jul 2001 10:11:20 +0000
Subject: AW: [PHP-INST] Problems installing PHP with Apache
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-3459@lists.php.net to get a copy of this message
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:advers@usa.net] Gesendet: Montag, 9. Juli 2001 11:08 An: php-install@lists.php.net 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: php-install-unsubscribe@lists.php.net For additional commands, e-mail: php-install-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.install (#3459) next »