欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

记录个人php编译安装

程序员文章站 2022-05-24 22:08:09
...
安装之前:
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.net/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