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

Downgrade PHP 5.6.26 to 5.4.33

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by droopy » Wed Sep 21, 2016 7:40 pm

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,
Top

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

Re: Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by skurudo » Thu Sep 22, 2016 7:22 am

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
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by droopy » Thu Sep 22, 2016 11:00 am

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.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by skamasle » Fri Sep 23, 2016 7:02 pm

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.
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by droopy » Sat Sep 24, 2016 7:06 pm

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
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: Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by mehargags » Sun Sep 25, 2016 6:53 am

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.
Top

droopy
Posts: 40
Joined: Wed Jun 11, 2014 11:50 pm

Re: Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by droopy » Sun Sep 25, 2016 4:57 pm

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
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: Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by mehargags » Sun Sep 25, 2016 6:11 pm

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
Top

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

Re: Downgrade PHP 5.6.26 to 5.4.33
  • Quote

Post by skurudo » Mon Sep 26, 2016 2:42 pm

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.
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
 

 

Login  •  Register

I forgot my password