# 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

文章標籤
全站熱搜
創作者介紹
創作者 DanBrother 的頭像
DanBrother

DanBrother的部落格

DanBrother 發表在 痞客邦 留言(0) 人氣(155)