Page 1 of 1

Downgrade PHP 5.6.26 to 5.4.33

Posted: Wed Sep 21, 2016 7:40 pm
by droopy
Hi,

I recently installed vestacp and notice by default now comes with PHP version 5.6.26
I need to downgrade it to 5.4.33 as my php scripts are compatible with them. Else i have to edit mysql connect fields on them. (previous DEFAULT VESTA PHP VERSION)

I dont see any selectable PHP Version on vesta (as others like cpanel have implemented this).

I am running vestacp on centos6. Any tutorial or help on downgrading php?

regards,

Re: Downgrade PHP 5.6.26 to 5.4.33

Posted: Thu Sep 22, 2016 7:22 am
by skurudo
droopy wrote: I dont see any selectable PHP Version on vesta (as others like cpanel have implemented this).
skamasle made good php selector for this, it's 3rd party
viewtopic.php?f=19&t=10854

Re: Downgrade PHP 5.6.26 to 5.4.33

Posted: Thu Sep 22, 2016 11:00 am
by droopy
skurudo wrote:
droopy wrote: I dont see any selectable PHP Version on vesta (as others like cpanel have implemented this).
skamasle made good php selector for this, it's 3rd party
viewtopic.php?f=19&t=10854
Thanks Skurudo. Yes, i install and seems a nice solution.
Problem is that the script install basic PHP. The mcrypt extension is missing.
Hope it install the full php same as previous DEFAULT vesta installation which works perfect with my scripts on PHP 5.4.33

PHP selector is a MUST HAVE now. Due to many php versions and scripts working on a particular PHP, this option is PRIORITY 1.
cpanel and others already have a selector by default.

Regards.

Re: Downgrade PHP 5.6.26 to 5.4.33

Posted: Fri Sep 23, 2016 7:02 pm
by skamasle
droopy wrote:
skurudo wrote:
droopy wrote: I dont see any selectable PHP Version on vesta (as others like cpanel have implemented this).
skamasle made good php selector for this, it's 3rd party
viewtopic.php?f=19&t=10854
Thanks Skurudo. Yes, i install and seems a nice solution.
Problem is that the script install basic PHP. The mcrypt extension is missing.
Hope it install the full php same as previous DEFAULT vesta installation which works perfect with my scripts on PHP 5.4.33

PHP selector is a MUST HAVE now. Due to many php versions and scripts working on a particular PHP, this option is PRIORITY 1.
cpanel and others already have a selector by default.

Regards.

Hi

You can install any php extensión, just search and install it

Code: Select all

yum search php-mcrypt --enablerepo=remi
And install it whit yum for php versión you need :)

This is explained in php selector topic.

Re: Downgrade PHP 5.6.26 to 5.4.33

Posted: Sat Sep 24, 2016 7:06 pm
by droopy
Any idea to install by default PHP 5.4.33 same as previous DEFAULT VESTA CP?

Vesta should use versions and install by version.
As always on updates there are many bugs, crash or wrong configuration that interfere.
So if i have a working version i could install always SAME version instead of doing modifications to scripts, replace php, etc.

regards

Re: Downgrade PHP 5.6.26 to 5.4.33

Posted: Sun Sep 25, 2016 6:53 am
by mehargags
droopy wrote:Any idea to install by default PHP 5.4.33 same as previous DEFAULT VESTA CP?
Install CentOS 6.x or Debian 7 Wheezy, you will get PHP 5.4.x by default when you install VestaCP.

Newer OS versions have transitioned to much more performant PHP 5.6.x.

Re: Downgrade PHP 5.6.26 to 5.4.33

Posted: Sun Sep 25, 2016 4:57 pm
by droopy
Actually i install default CentOS 6.8 and PHP appears as 5.6.26!!!!
Few weeks ago it install 5.4.45 but NOT NOW!!

On debian 7 wheezy installed PHP 5.4.45 be default.

On both, i have with some php scripts that are not working. Latest update of vesta crash something

Re: Downgrade PHP 5.6.26 to 5.4.33

Posted: Sun Sep 25, 2016 6:11 pm
by mehargags
droopy wrote:Actually i install default CentOS 6.8 and PHP appears as 5.6.26!!!!
Few weeks ago it install 5.4.45 but NOT NOW!!
which is a sign you should be using latest PHP and not the antiquated 5.4 unless you have a really lousy primitive code.
droopy wrote: On both, i have with some php scripts that are not working. Latest update of vesta crash something
So then I'm sure the problem is somewhere else... you are hunting in the dark.
You can PM me your details, the site code and VPS so I can check. It is entirely possible that PHP version is NOT your problem

Re: Downgrade PHP 5.6.26 to 5.4.33

Posted: Mon Sep 26, 2016 2:42 pm
by skurudo
droopy wrote:Actually i install default CentOS 6.8 and PHP appears as 5.6.26!!!!
Few weeks ago it install 5.4.45 but NOT NOW!!
We have to do this, phpmyadmin strongly need php 5.6 now in CentOS
droopy wrote:On debian 7 wheezy installed PHP 5.4.45 be default.
Will be after this release, there is no dependency yet.