Linux下配置PHP运行环境
oracle-xe-univ-10.2.0.1-1.0.i386.rpm
apache_1.3.36.tar.gz
libxml2-2.6.11.tar.gz
php-5.1.4.tar.gz
下载,下面是安装详细过程
安装Oracle Database 10g Express
Edition
Oracle最好用root帐户安装(oracle-xe-univ-10.2.0.1-1.0.i386.rpm)
# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
安装结束后进行配置
# /etc/init.d/oracle-xe configure
然后按照提示进行设置
编辑root用户的root/.bash_profile
ORACLE_HOME="/usr/lib/oracle/xe/app/oracle/product/10.2.0/server"
export ORACLE_HOME
安装apache
(apache_1.3.36.tar.gz)
#tar -xvf apache_1.3.36.tar.gz
#cd apache_1.3.36
#./configure
#--prefix=/usr/local/apache
#--enable-module =so
#make
#make install
首先安装libxml2-2.6.11
#tar -xvf libxml2-2.6.11.tar.gz
#cd libxml2-2.6.11
#./configure
#--prefix=/usr/local/libxml2
#make
#make install
安装PHP-5.1.4
#./configure \
#--prefix=/usr/local/php \
--with-apxs=/usr/local/apache/bin/apxs \
--with-oci8=
/usr/lib/oracle/xe/app/oracle/product/10.2.0/server \
--with-config-file-path=/usr/local/apache/conf \
--with-libxml-dir=/usr/local/libxml2 \
--enable-sigchild \
--enable-mbstring \
-- enable-mbregex
\
--enable-zend-multibyte
#make
#make install
编辑apache配置文件
#AddType application/x-tar .tgz 下加一行 AddType application/x-httpd-php .php
把#LoadModule php5_module
modules/libphp5.so前的#去掉
指到DocumentRoot
"/usr/local/apache2/htdocs", 把"/usr/local/apache2/htdocs"改为用户存放网页的地方
其他配置按要求即可
http://www.oracle.com/technology/tech/php/htdocs/inst_php_apache_linux.html
http://download-west.oracle.com/docs/cd/B25329_01/doc/install.102/b25144/toc.htm#CIHHJEHF