上手VPS之编译安装PHP

By | 2013年3月14日

参考之前的编译安装PHP

这次的安装,由于使用编译安装,自定义了安装路径,所以在编译参数中指定了mysql的路径,其他模块功能,按需调整即可。

./configure
--prefix=/opt/ProgramFiles/php
--disable-ipv6
--enable-exif
--enable-fpm
--enable-ftp
--enable-gd-native-ttf
--enable-intl
--enable-mbstring
--enable-mod-charset
--enable-sockets
--enable-sysvmsg
--enable-sysvsem
--enable-sysvshm
--enable-zip
--with-bz2
--with-config-file-path=/opt/ProgramFiles/php/etc
--with-curl
--with-freetype-dir
--with-jpeg-dir
--with-gd
--with-gettext
--with-mhash
--with-iconv-dir
--with-libxml-dir
--with-mcrypt
--with-mysql=/opt/ProgramFiles/mysql
--with-mysql-sock=/var/cache/mysql/mysql.sock
--with-mysqli=/opt/ProgramFiles/mysql/bin/mysql_config
--with-openssl-dir
--with-openssl
--with-pcre-dir
--with-pcre-regex
--with-pdo-mysql=/opt/ProgramFiles/mysql
--with-png-dir
--with-pear
--with-t1lib
--with-zlib