Upgrade to php 5.6
Posted: Mon Apr 25, 2016 5:25 pm
I follow this tutorial and when this works for me on vestacp 6.5 and 7.
http://blog.hazaveh.net/2016/02/upgradi ... -vesta-cp/
Yesterday I was told to set up a new php server in company for some small project. I did not really want to set everything up manually as the person who will be using this server is not geeky. So by looking around I came to find Vesta Control Panel aka VestaCP. it sounds lightweight and promising considering its a free tool. well of course it is so simple and it can never be compared to things like cPanel, but for this kind of setup it seems to be good.
The only con about this panel is the file manager. basically there is no file manager and if you want to have it you got to pay. but who cares. we can always use FTP.
One issue is that the current version of vestacp installs php 5.4 by default which is too out dated for our current apps. most of the new CMSes and Frameworks such as Laravel require php >= 5.5. So what I had to do was to upgrade the PHP version to 5.6 from 5.4.
In this particular case I’m running CentOS 7.
By default php 5.6 is not in the repository of cent os and you need to be adding some repo like epel or remi. Vesta will bring remi repository for you.
to upgrade all installed php tools on your server from 5.4 to 5.6 run following command:
yum --enablerepo=remi-php56 upgrade php-mysql php-devel php-gd php-pecl-memcache php-xmlrpc php-pspell php-snmp
If you found that you do not have remi repo on your machine you can get it from links below depending on the cent os version you are using:
Remi For CentOs 5 http://rpms.famillecollet.com/enterpris ... ease-5.rpm
Remi For CentOs 6 http://rpms.famillecollet.com/enterpris ... ease-6.rpm
Remi For CentOs 7 http://rpms.famillecollet.com/enterpris ... ease-7.rpm
You can find other links to remi at here. http://rpms.famillecollet.com/
Hope this helps.
http://blog.hazaveh.net/2016/02/upgradi ... -vesta-cp/
Yesterday I was told to set up a new php server in company for some small project. I did not really want to set everything up manually as the person who will be using this server is not geeky. So by looking around I came to find Vesta Control Panel aka VestaCP. it sounds lightweight and promising considering its a free tool. well of course it is so simple and it can never be compared to things like cPanel, but for this kind of setup it seems to be good.
The only con about this panel is the file manager. basically there is no file manager and if you want to have it you got to pay. but who cares. we can always use FTP.
One issue is that the current version of vestacp installs php 5.4 by default which is too out dated for our current apps. most of the new CMSes and Frameworks such as Laravel require php >= 5.5. So what I had to do was to upgrade the PHP version to 5.6 from 5.4.
In this particular case I’m running CentOS 7.
By default php 5.6 is not in the repository of cent os and you need to be adding some repo like epel or remi. Vesta will bring remi repository for you.
to upgrade all installed php tools on your server from 5.4 to 5.6 run following command:
yum --enablerepo=remi-php56 upgrade php-mysql php-devel php-gd php-pecl-memcache php-xmlrpc php-pspell php-snmp
If you found that you do not have remi repo on your machine you can get it from links below depending on the cent os version you are using:
Remi For CentOs 5 http://rpms.famillecollet.com/enterpris ... ease-5.rpm
Remi For CentOs 6 http://rpms.famillecollet.com/enterpris ... ease-6.rpm
Remi For CentOs 7 http://rpms.famillecollet.com/enterpris ... ease-7.rpm
You can find other links to remi at here. http://rpms.famillecollet.com/
Hope this helps.