当前位置:Gxlcms > PHP教程 > 记录个人php编译安装

记录个人php编译安装

时间:2021-07-01 10:21:17 帮助过:19人阅读

安装之前:

yum -y install curl-devel libxml2-devel libpng-devel libmcrypt-devel libjpeg-devel openssl-develwget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gztar -zxvf libmcrypt-2.5.7.tar.gzcd libmcrypt-2.5.7 ./configure --prefix=/usr/local/libmcryptmake && make install

下载php:

 wget -c http://au1.php.com/get/php-5.6.8.tar.gz/from/this/mirror  tar -zxvf mirror  cd php-5.6.8/  ./configure --enable-fpm --enable-soap --enable-sockets --enable-zip --with-curl --with-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --with-mysqli=/usr/local/mysql-5.5.41-linux2.6-x86_64/bin/mysql_config --with-gd --with-openssl --with-pdo-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --prefix=/usr/local/php --with-iconv --with-mcrypt=/usr/local/libmcrypt  make && make install

人气教程排行