步骤如下:
1. 下载php for linux
#wget http://cn2.php.net/distributions/php-5.5.37.tar.gz
#tar zxvf <pre name="code" class="plain">php-5.5.37.tar.gz
2. 进入php解压后的目录
然后
#./configure --prefix=/usr/local/php/php-5.5.37-dir --enable-fpm --with-mcrypt
报错
configure: error: xml2-config not found. Please check your libxml2 installation.
我就安装它
yum install libxml2-devel
重新./configure后报错
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
安装之
yum install libmcrypt
3. 安装php
#make
#make install
4.