Installing Libmcrypt
Cd/usr/local/src
Tar zxvf libmcrypt-2.5.7.tar.gz #解压
CD libmcrypt-2.5.7 #进入目录
./configure #配置
Make #编译
Make install #安装
Install PHP
Cd/usr/local/src
TAR-ZVXF php-5.3.13.tar.gz
CD php-5.3.13
Mkdir-p/USR/LOCAL/PHP5 #建立php安装目录
./configure--PREFIX=/USR/LOCAL/PHP5--with-config-file-path=/usr/local/php5/etc--with-mysql=/usr/local/mysql-- With-mysqli=/usr/local/mysql/bin/mysql_config--with-mysql-sock=/tmp/mysql.sock--with-gd--with-iconv--with-zlib --enable-xml--enable-magic-quotes--enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem-- Enable-inline-optimization--with-curlwrappers--enable-mbregex--enable-fpm--enable-mbstring--enable-ftp-- Enable-gd-native-ttf--with-openssl--enable-pcntl--enable-sockets--with-xmlrpc--enable-zip--enable-soap-- Without-pear--with-gettext--enable-session--with-mcrypt--with-curl--with-jpeg-dir--with-freetype-dir #配置
Make #编译
Make install #安装
Linux installation PHP