So you need to upgrade PHP3 af …

So you need to upgrade PHP3 after the PHP security advisory a few days ago. Here’s how to do it if you can’t compile Apache with DSO support and also need SSL.

$ cd apache_1.3.23
$ ./configure –prefix=/usr/local/apache.443

$ cd php-3.0.18
$ cd functions ; patch < ../../mime.c.diff-3.0 ; cd ..
$ ./configure ‘–with-mysql’ ‘–with-apache=../apache_1.3.23’ ‘–enable-track-vars’
$ make
$ make install

compile openssl (

$ cd ../mod_ssl-2.8.7-1.3.23
$ ./configure –with-apache=../apache_1.3.23 –with-ssl=../openssl-0.9.6c –prefix=/usr/local/apache.443 –activate-module=src/modules/php3/libphp3.a

$ cd ../apache_1.3.23
$ make
# make install

Some important links:

By Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Twitter.

Leave a Reply