php安装过程记录

>./configure --prefix=/slview/php5 \
--with-apxs2=/slview/apache/bin/apxs \
--with-mysql=/slview/mysql \
--with-oci8=/oracle/product/10.2.0 \
--with-bz2 --enable-zip --enable-calendar \
--enable-sqlite-utf8 --enable-mbstring --with-curl --with-snmp \
--enable-exif --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr \
--with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr \
--enable-gd-native-ttf --with-xmlrpc --enable-soap --enable-sockets

>make

>make install

编辑apache/conf/httpd.conf,增加

LoadModule php5_module        modules/libphp5.so
<IfModule mod_php5.c>
  AddType application/x-httpd-php .php .php3
  php_admin_flag magic_quotes_gpc  Off
  php_admin_flag magic_quotes_runtime  Off
</IfModule>

posted on 2011-07-08 17:48  IT老友  阅读(164)  评论(0编辑  收藏  举报

导航