How can we help?

Watch this space: Upcoming Help Centre Migration


Compiling PHP 5.3.x for Atmail and ArchiveVault

Nathan Salt -


How to compile PHP from source


  • On-Premise Server + WebMail Installations: Version 6.0 > Current Version
  • Webmail Only Installations: Version 6.0 > Current Version


Need to compile PHP from source


While tools such as yum, apt-get and pkg_add can make our life a lot easier when it comes to installing PHP and it's extensions (among other things), there is often a time when we need to go the old-fashioned route and compile from source. This brief article explains how to build PHP 5.3.x from source while detailing the configure options required for compiling PHP 5.3.x so that it plays nice with Atmail 6 and ArchiveVault.

General Install Instructions

  1. Download the PHP 5.3.x source from
  2. Extract into a temporary location on your server, say /tmp
  3. cd into the php-5.3.x/ dir that you just extracted
  4. Now it's time to configure the PHP source for the options you want compiled so run this command:

    ./configure --with-apxs2=/usr/sbin/apxs --with-mysql --enable-mbstring --with-ldap --with-pdo-mysql --with-zlib--with-openssl
  5. Once configure has successfully completed run this command : make install


  1. You will need to replace /usr/sbin/apxs with the path to your apxs
  2. you may need to install mysql-devel if you run into configure or compile errors relating to the mysql extension
  3. you may need to install the zlib library if you run into errors relating to zlib extension (and may need to point to the location of zlib with --with-zlib=/path/to/zlib)
  4. you may need to install the OpenSSL library if it is not on your system
  5. On some 64bit systems (eg CentOS, RH) you may need to run:

    ln -s /usr/lib64/mysql/ /usr/lib/mysql/libmysqlclient.s


Contact our support team

+61 (7) 5357 6605