转载请注明出处: 皮哈皮阿
本文的链接地址: https://blog.phpat.com/web/457.html
转自: https://blog.hostonnet.com/install-php-5-6-on-centos-7-server
CentOS 7 come with outdated PHp 5.4 for some strange reason only enterprise can understand. I normally prefer Ubuntu 16.04 over CentOS 7 because it come with latest software. Default PHP version with Ubuntu 16.04 is 7.
To install PHP 5.6 on CentOS 7, you need to install remi repository.
yum install -y epel-release wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm rpm -ivh remi-release-7.rpm yum update
If you have older version of PHP, uninstall it with
yum remove php-pdo php-odbc php-xml php-soap php-cli php-devel php-pspell php php-intl php-xmlrpc php-process php-common php-gd php-mysqlnd php-mbstring
Now you can install PHP 5.6 with
yum install php56 php56-php php56-php-mysqlnd php56-php-gd php56-php-mcrypt php56-php-mbstring php56-php-xml php56-php-cli
If you need ioncube loader, install it with
yum install php56-php-ioncube-loader
if you want to use php-fpm, then install
yum install php56-php-ioncube-loader
You can edit php-fpm pool config with
vi /opt/remi/php56/root/etc/php-fpm.d/ www.conf
Start/stop/restart php-fpm with
systemctl start php56-php-fpm systemctl stop php56-php-fpm systemctl restart php56-php-fpm
In your Apache virtual host file or global Apache config, add
<FilesMatch \.php$> SetHandler "proxy:fcgi://127.0.0.1:9000" </FilesMatch>
If you want multiple php version, use different ports or sockets for each php-fpm installation and add the entry in virtual host.
转载请注明出处: 皮哈皮阿
本文的链接地址: https://blog.phpat.com/web/457.html
最近更新:更新到v2.5.7
请求中为数字/布尔的字段要多加注意,...
基于emlog开发的微信小程序
仿小米论坛版本更新V2.0,本次暂时...
element-ui el-tabl...
@子恒:😂躺平吧,世界都跟你没关系
你写得非常清晰明了,让我很容易理解你的观...
#Emlog插件RSS订阅器发布#
一直到今天,还没10天,我支付宝里仅剩7...
@樊鑫:不支持,仅支持pro版本,可以在...
#Beginning-Pro发布,Emlog-Pro + Beginning-Pro, 更Pro#
支持5.3吗?在哪里购买/下载?
#Beginning-Pro发布,Emlog-Pro + Beginning-Pro, 更Pro#
@叽叽:开源了的,https://git...
#vue.js组件之手写签名板vue-signature-simple#