Recompiling PHP 4.0.6
I'm trying to recompile php 4.0.6 on a linux machine to support GD with PNG and JPEG. Here are my steps:Install libpng-1.0.12 (1.2.0 won't allow apache to restart(
Install jpeg-v6b
Install zlib-1.1.3
Install gd-1.2.0 (I tried 1.8.4 with the same results)
Install PHP with the following configure string:
./configure --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc/apache --enable-versioning --with-system-regex --disable-debug --enable-track-vars --enable-pear --with-mysql --with-gd=../gd-2.0.1 --enable-force-cgi-redirect --with-gettext --with-mysql=/usr --enable-ftp --with-gettext=/usr --with-zlib-dir=../zlib-1.1.3 --with-jpeg-dir=/usr/local --with-png-dir=../libpng-1.0.12
It compiles without a hitch, the configure output shows it finds the png and jpeg files just fine and looks like it does GD just fine too. Apache restarts without a hitch.
The problem lies with phpinfo();. Here is the output:
gd
GD Support enabled
GD Version 1.6.2 or higher
WBMP Support enabled
I cannot figure out what I'm doing wrong for it not to pick up the PNG and JPEG support. Another one of our servers runs php 4.0.6 with PNG and JPEG support nicely -- but it's FreeBSD. GD was done from ports...
Anyone have any ideas as to why PHP isn't seeing the GD PNG JPEG support?