默认的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服务器。
这在我的服务器上工作。
最初取自这里。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句