Installation instructions for using PHP with the Apache web server.
Compiling and Installing
Configure PHP with the options you want. In this case, we'll be adding Apache and MySQL support.
./configure \
--enable-mbstring \
--with-gd \
--with-gettext \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql
If you want to include LDAP support, use:
./configure \
--enable-mbstring \
--with-gd \
--with-gettext \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-ldap
If it configures correctly, make and install the binaries: