Mr.*_*ley 0 linux self-hosting laravel-4 php-5.6 centos6.5
默认的Vesta CP 0.9.8附带PHP5.4,这使我在Laravel 4.2网站上出现问题.如何将自托管Vesta CP的php版本从5.4升级到最新5.6?
vesta CP 0.9.8的默认PHP版本是PHP5.4
首先停止您的Web服务器
如果是NGINX
service nginx stop
如果是Apache
service httpd stop
然后删除PHP
yum remove php -y
添加相关的存储库
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
启用'remi'和'remi-php56'的remi
nano /etc/yum.repos.d/remi.repo 并将启用的值从0更改为1
安装php56
yum install php php-bcmath php-cli php-common php-gd php-imap php-mbstring php-mcrypt php-mysql php-pdo php-soap php-tidy php-xml php-xmlrpc php-pecl-apc phpMyAdmin roundcubemail php-opcache php-xdebug -y
重置链接
mv -f /etc/roundcubemail/db.inc.php.rpmsave /etc/roundcubemail/db.inc.php
mv -f /etc/roundcubemail/main.inc.php.rpmsave /etc/roundcubemail/main.inc.php
mv -f /etc/phpMyAdmin/config.inc.php.rpmsave /etc/phpMyAdmin/config.inc.php
启动您的Web服务器.
这在我的服务器上运行.
最初取自这里.