Installing PHP 4.3.11 on Mac OS X Server 10.3+ (Panther)

The following installation is configured with the same commands as the Apple shipped module for Panther.
To check what is your current php version via terminal: php -v

curl -O http://us2.php.net/distributions/php-4.3.11.tar.gz
gunzip php-4.3.11.tar.gz
tar -xvf php-4.3.11.tar

Create install script

cat > php.Build
#! /bin/sh
CFLAGS=-DBIND_8_COMPAT
export CFLAGS
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--with-apxs \
--with-ldap=/usr \
--with-kerberos=/usr \
--enable-cli \
--with-zlib-dir=/usr \
--enable-trans-sid \
--with-xml \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-dbx \
--enable-sockets \
--with-iodbc=/usr \
--with-curl=/usr \
--with-config-file-path=/etc

Do a "control C" to end the "cat >" process. That will create a file called php.Build in your home directory.

chmod 775 php.Build
cd php-4.3.11
../php.Build
make
make install
sudo apachectl graceful restart 

PHP.INI (php pref file)

/etc/php.ini.default - If you need to use the pref file rename "php.ini.default" to "php.ini" and it should be available to you.