Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Upgrade to php 5.6

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
robindirksen
Posts: 13
Joined: Tue Dec 22, 2015 8:34 pm

Upgrade to php 5.6
  • Quote

Post by robindirksen » 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.
Top

leisegang
Posts: 64
Joined: Mon Feb 29, 2016 7:24 pm

Re: Upgrade to php 5.6
  • Quote

Post by leisegang » Tue Apr 26, 2016 7:28 pm

Look at this. Its easy and works well:
http://forum.vestacp.com/viewtopic.php?f=19&t=10854
Top

kaavain
Posts: 62
Joined: Sat Sep 03, 2016 12:31 pm

Re: Upgrade to php 5.6
  • Quote

Post by kaavain » Tue Oct 04, 2016 6:16 am

Great, it works. But PHP will be without OPCache, and it would be great to have imagic as well... Does anybody knows how to add opcache to existing php?
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Upgrade to php 5.6
  • Quote

Post by skurudo » Tue Oct 04, 2016 11:51 am

kaavain wrote:Great, it works. But PHP will be without OPCache, and it would be great to have imagic as well... Does anybody knows how to add opcache to existing php?
Like this https://webtatic.com/packages/php56/
Try a little ;;;-)
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Upgrade to php 5.6
  • Quote

Post by mehargags » Tue Oct 04, 2016 7:02 pm

and you can install LXDE min. GUI with Tight VNC Server... will work 10 times better than any file manager
Top

Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Upgrade to php 5.6
  • Quote

Post by Felix » Wed Oct 12, 2016 2:35 pm

skurudo wrote: Like this https://webtatic.com/packages/php56/
Try a little ;;;-)
skurudo I've seen this guide and I'm interested in trying it, but I'd like to ask if this might break anything in VestaCP. I'm worried about Web and Proxy templates of VestaCP.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Upgrade to php 5.6
  • Quote

Post by mehargags » Wed Oct 12, 2016 4:53 pm

@Felix
You should be safe 99% upgrading PHP or MySQL on any OS.
As you may think VestaCP depends on php, it uses its own core PHP and is not dependent on the global PHP parser(s) installed from webservers.

You should be good to upgrade, its a pretty safe affair.
Top

KhaoMaNee
Posts: 12
Joined: Thu Feb 26, 2015 5:58 am

Re: Upgrade to php 5.6
  • Quote

Post by KhaoMaNee » Fri Oct 14, 2016 4:42 am

-posted wrong thread-
Last edited by KhaoMaNee on Sat Oct 15, 2016 3:56 am, edited 1 time in total.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Upgrade to php 5.6
  • Quote

Post by mehargags » Fri Oct 14, 2016 5:03 pm

KhaoMaNee wrote:Check this too viewtopic.php?p=50895#p50895 Skurudo provided this guide. I just upgraded yesterday to 5.7, it works but I did get a lot of "error : Table rebuild required. Please do "ALTER TABLE" after running the last command. If anyone can share what is this and howo would they fix it quickly, please share.
@KhaoMaNee,
The OP is refering to PHP 5.6 upgrade, not MySQL. Please do not confuse the topics
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password