how to statically link PHP 5.2.x + Apache httpd 2.2.x?

how to statically link PHP 5.2.x + Apache httpd 2.2.x?

am 29.09.2009 11:52:15 von Ro Achterberg

Hi all,

I'm in the midst of setting up my production server, which will be
running on a fully chrooted non-root LAMP configuration. Due to my
high demands for performance and security, I've been advised by
several resources on the net to statically link PHP into Apache.
However, all information I could find seems to pertain to very old
Apache 1.3.x configurations, which are no longer compatible with the
current configure scripts.

In the past few days, I've tried my best to build a libphp5.a static
library using various configure arguments, but to no avail. I'm
starting to wonder if it's at all possible to statically link PHP
5.2.x into httpd 2.2.x! Some information about my build system: httpd
2.2.13, PHP 5.2.11, gcc 4.1.2, binutils 2.18 on CentOS 5.2. My last
unsuccessful ./configure line reads as follows:
"./configure --prefix=/chroot/apache2/php --with-iconv=/usr/local
--enable-static"

Any insights would be greatly appreciated.

Bye, Ro

P.S. I've also posted this message to php-install@lists.php.net,
because I'm not sure where this really belongs. In my mind, my
problem seems to be as much related to Apache as it is to PHP.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: how to statically link PHP 5.2.x + Apache httpd

am 08.10.2009 13:56:53 von Matus UHLAR - fantomas

On 29.09.09 11:52, Ro Achterberg wrote:
> I'm in the midst of setting up my production server, which will be
> running on a fully chrooted non-root LAMP configuration. Due to my high
> demands for performance and security, I've been advised by several
> resources on the net to statically link PHP into Apache. However, all
> information I could find seems to pertain to very old Apache 1.3.x
> configurations, which are no longer compatible with the current configure
> scripts.

i doubt static linking would improve security. I think it would make
security maintenance much harder - it's easy to upgrade shared library but
any bug in any part of the stuff would require recompiling the stuff again.

--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"Two words: Windows survives." - Craig Mundie, Microsoft senior strategist
"So does syphillis. Good thing we have penicillin." - Matthew Alton

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org