Re: PHP5 static module apache 1.3.x compile issues

From: Date: Mon, 13 Jun 2005 16:14:10 +0000
Subject: Re: PHP5 static module apache 1.3.x compile issues
References: 1 2 3  Groups: php.install 
Request: Send a blank email to php-install+get-16261@lists.php.net to get a copy of this message
Thanks Rasmus. I am looking to improve the speed at which php executes through apache (and using a static module seemed to be helpful in PHP4). I don't see any explaination of how to build a non-pic (position independent code) dso for apache on the PHP website. Do I just add the option "--with-pic" to do that? Thanks, seth On 6/13/05, Rasmus Lerdorf <rasmus@lerdorf.com> wrote: > > PHP5 does not support being built as a static module. There is really > no reason to build it that way anymore. If you think you need it for > performance reasons, just build a non-pic dso which gives you the exact > same performance of the static module without the bother of having to > recompile Apache. > > -Rasmus > > Seth Russell wrote: > > 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 > >

« previous php.install (#16261) next »