./configure --prefix=/usr/local/php-5.3.3 \
--with-config-file-path=/usr/local/php-5.3.3/etc \
--with-apxs2=/usr/local/httpd-2.2.16/bin/apxs \
--with-curl \
--with-gd \
--with-jpeg-dir=/usr/lib64 \
--with-iconv \
--with-zlib-dir \
--with-pear \
--with-xmlrpc \
--with-openssl \
--with-mysql \
--with-mysqli \
--with-pdo-mysql \
--enable-zip \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--enable-magic-quotes \
--enable-inline-optimization \
--enable-xml \
--enable-ftp
export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/client64
export LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.3/client64:$LD_LIBRARY_PATH
export NLS_LANG="AMERICAN_AMERICA.AL32UTF8"
./configure --prefix=/usr/local/php-5.2.14 \
--with-config-file-path=/usr/local/php-5.2.14/etc \
--with-apxs2=/usr/local/httpd-2.2.16/bin/apxs \
--with-curl \
--with-gd \
--with-jpeg-dir=/usr/lib64 \
--with-iconv \
--with-zlib-dir \
--with-pear \
--with-xmlrpc \
--with-openssl \
--with-mysql \
--with-mysqli \
--with-pdo-mysql \
--with-pdo-oci \
--enable-zip \
--enable-sockets \
--enable-soap \
--enable-mbstring \
--enable-magic-quotes \
--enable-inline-optimization \
--enable-xml \
--enable-ftp
make && make install
--with-oci8 \
--with-pdo-oci=instantclient,/usr,10.2.0.3
AllowOverride All
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
<IfModule mpm_worker_module>
StartServers //Apache启动立即产生n个子进程
MaxClients //允许最大的客户数
ServerLimit //最大允许n子进程数
MinSpareThreads //最少有n个空线程
MaxSpareThreads //最多有n个空线程
ThreadLimit //最多有n个线程
ThreadsPerChild //一个子进程有n个常驻线程
MaxRequestsPerChild //当处理的线程数达到n销毁
</IfModule>
<IfModule mpm_worker_module>
StartServers 16
ServerLimit 64
ThreadLimit 256
MaxClients 4096
MinSpareThreads 128
MaxSpareThreads 250
ThreadsPerChild 256
MaxRequestsPerChild 10000
</IfModule>
display_errors = Off
mysql.connect_timeout = 30