To set up PHP:
- Make sure Apache is installed and make note of the directory. For this example, we will assume Apache is installed at /usr/local/apache
- Ensure that unixODBC has been installed as described above.
-
Download the source for PHP 5.4.19 and extract it to the desired directory. The following setup instructions should be used for PHP:
$ CFLAGS="-DSIZEOF_LONG=8" ./configure --with-apxs2=/usr/local/ apache/bin/apxs --with-zlib --with-unixODBC --with-pdo-odbc=unixODBC $ make && make install $ cp -p .libs/libphp5.so /usr/local/apache/modules