# Go to PHP src directory
cd /source/php-5.4.0
export ORACLE_HOME=/u01/oracle/db11203
./configure --prefix=/usr/local/etc/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-oci8=/u01/oracle/db11203
make
make install
# Go To Apache src directory
cd /source/httpd-2.2.22
./configure --prefix=/usr/local/apache \
--enable-so \
--enable-ssl
make
make install
# Configuring Apache and PHP
cp /source/php-5.4.0/php.ini-production /usr/local/etc/php/lib/php.ini
# Edit /usr/local/apache/conf/httpd.conf
>>
# To configure Apache
# edit /usr/local/apache/conf/httpd.conf
# and set the your document directory and
# any other Apache settings you may want.
# To enable Apache and PHP to work together the following line needs to be added:
AddType text/html .php
AddType application/x-httpd-php .php
