centos linux下安装php5.5.14的方法
yum -y install libxml2-devel httpd-devel libXpm-devel gmp-devel libicu-devel \t1lib-devel aspell-devel openssl-devel bzip2-devel libcurl-devel \
libjpeg-devel libvpx-devel libpng-devel freetype-devel readline-devel \
libtidy-devel libxslt-devel
wget http://us3.php.net/distributions/php-5.5.14.tar.gz
tar xzf php-5.5.14.tar.gz
cd php-5.5.14
./configure
make
make install
php -v
PHP文件路径
/usr/local/bin/php-cgi
输出信息为下,代表成功安装。
PHP 5.5.14 (cli) (built: Jul 15 2014 22:19:06)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
页:
[1]