Brad Pauly wrote:

On Thu, 2004-01-22 at 09:43, Thaddeus J. Quintin wrote:

I'm trying to get php 4.3.4 installed as a module for Apache 1.3.28. I have apache unzipped/untarred and I ran the ./configure script for it (per the instructions in the PHP install). I then configured php with the following line-

$ ./configure --with-mysql=/usr/local/mysql \
        --with-apache=/usr/local/src/apache_1.3.28
and then
$ make install

This works fine. I then go back to the apache directory and run

$ ./configure --prefix=/usr/local/apache \
        --activate-module=src/modules/php4/libphp4.a

Also fine, but when I run 'make' on apache, I get the following error-
===> src/modules/php4
gcc -c -I../../os/unix -I../../include -funsigned-char -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` mod_php4.c
mod_php4.c:22: php_apache_http.h: No such file or directory
*** Error code 1


Stop in /usr/local/src/apache_1.3.28/src/modules/php4.

I found the 'php_apache_http.h' in the php source directory, but copying that into the apache module directory didn't accomplish anything but create new errors.

I'm installing on FreeBSD 4.9. Anything I else I should be trying?


I haven't ever compiled on FreeBSD, but, on Linux, I usually configure
and compile Apache first, then PHP with something like this (of course
with any other options you want)

Apache:

$ ./configure --prefix=/path/apache --enable-module=so
$ make
# make install

PHP:

$ ./configure --prefix=/path/php --with-apxs=/path/apache/bin/apxs
$ make
# make install
Thanks Brad, but I'd really like PHP compiled as a static module for apache. This is for a production server and it's usually advisable to stick with the static modules for critical sites.

- Brad






-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to