12.4 With SSL

If mod_ssl was compiled with the -enable-rule=EAPI, this section should be ignored and PHP should be configured outlined above (compiling PHP without SSL support).

Otherwise, there is a slight difference when compiling PHP. Prior to the configure script call, PHP should be notified to be built with DEAPI, as follows:

# cd /usr/local/src/apache/php-4.3.x
# CFLAGS='-DEAPI' ./configure \
   --with-apxs=/path/to/installed/apache/bin/apxs \
   --with-pgsql=/usr/local/pgsql/ \
   --with-mysql=/usr/local/mysql/ \
   --enable-track-vars \
   --enable-versioning \
   --with-imap=../imap-2002e/ \
   --with-openssl=../openssl-0.9.7d/ \
   | tee configure_output.txt

One may also want to add other CFLAGS parameters. For example, under Linux, it may be best to also add -O2, as such: CFLAGS='-02 -DEAPI'.

The file configure_output.txt should be double checked to see if the configure script reported errors or not. If so, it is best to install or fix the problems detailed, and to proceed with configure again.