PHP5 static module apache 1.3.x compile issues
| From: | Seth Russell | Date: | Mon, 13 Jun 2005 15:35:36 +0000 |
| Subject: | PHP5 static module apache 1.3.x compile issues | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-16259@lists.php.net to get a copy of this message | ||
I am trying to install php5 as a static module in apache 1.3.33, but am
unsuccessful. I have followed the instructions on
http://www.php.net/manual/en/install.unix.php#install.unix.apache
(I am
running Redhat Linux AS 3).
I have noticed that the instructions are only for PHP4. I have tried to
change some things to be php5 specific, but still am not having success.
This is what I am trying (from the aforementioned php instructions):
1. gunzip -c apache_1.3.x.tar.gz | tar xf -
2. cd apache_1.3.x
3. ./configure
4. cd ..
5. gunzip -c php-5.x.y.tar.gz | tar xf -
6. cd php-5.x.y
7. ./configure --with-mysql --with-apache=../apache_1.3.x
8. make
9. make install
10. cd ../apache_1.3.x
11. ./configure --prefix=/www
--activate-module=src/modules/php5/libmodphp5.a
(The above line is correct! Yes, we know libphp4.a does not exist at this
stage. It isn't supposed to. It will be created.)
12. make
After I run make, it goes fine until it gets to the php part. Here is where
it dies:
gcc -c -I../../os/unix -I../../include -DLINUX=22 -DHAVE_SET_DUMPABLE
-I/usr/include/gdbm -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI -fpic
-DSHARED_CORE
../../apaci mod_php5.c
mod_php5.c:22:29: php_apache_http.h: No such file or directory
make[4]: *** [mod_php5.o] Error 1
I tried copying the mentioned header file, but then it references tons of
other header files, so still dies.
Looks like the documentation is wrong for PHP5 apache/static.
Has anyone been able to get it to compile?
thanks
seth