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

[HowTo]Upgrade PHP 5.6 to PHP 7.2 on CentOS VestaCP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
13 posts
  • Previous
  • 1
  • 2
Nightmaster
Posts: 9
Joined: Wed May 10, 2017 5:02 pm

Re: [HowTo]Upgrade PHP 5.6 to PHP 7.2 on CentOS VestaCP
  • Quote

Post by Nightmaster » Fri Aug 14, 2020 8:00 pm

Thanks for your quick answer!
I managed to find those additional ini files and I fixed json and mcrypt errors.

I rebooted server by using reboot command in ssh, is that enough?
Again, I'm seeing 7.2.33 version when I check php version through ssh, and 5.4.45 when I run phpinfo.php file, is that even possible? :D
Looks like my php version is still somehow "old", even older than I had before i tried to update (it was 5.6)?

Thanks!
Top

Nightmaster
Posts: 9
Joined: Wed May 10, 2017 5:02 pm

Re: [HowTo]Upgrade PHP 5.6 to PHP 7.2 on CentOS VestaCP
  • Quote

Post by Nightmaster » Mon Aug 17, 2020 12:02 pm

Sorry for double posting, but I still need a hand with this. :(
Looks like I have multiple php setups, and I just need to change config to use 7.2 instead of 5.4.
I googled and found this:
https://stackoverflow.com/questions/116 ... on-on-lion
Which says to change php.ini path to correct one, in httpd.conf in Apache. However I'm using php-fpm, and have no idea where I can change this path.
Current php.ini path which is shown in phpinfo(); is:
Loaded Configuration File /opt/remi/php54/root/etc/php.ini
Correct one would be
/opt/remi/php72/root/etc/php.ini
I guess that this would solve the problem, but have no idea where I can change it. Any suggestions?

Thanks!


EDIT: Got it!
I went to Vesta - WEB - choose site - EDIT - in Web Template I selected sk-php72, which somehow helped, and now phpinfo is showing the right version php 7.2!
Not really sure if this is the right way to do that, but writing here so that anyone who may experience the same problem can try the same. Thanks!

EDIT 2: Sadly phpMyAdmin is not working, getting a blank page. Any ideas about that?
Error log:
PHP Warning: Unsupported declare 'strict_types' in /usr/share/phpMyAdmin/index.php on line 8
Top

Nightmaster
Posts: 9
Joined: Wed May 10, 2017 5:02 pm

Re: [HowTo]Upgrade PHP 5.6 to PHP 7.2 on CentOS VestaCP
  • Quote

Post by Nightmaster » Wed Sep 16, 2020 11:54 am

Bump!
Any suggestions about how to fix phpmyadmin?
Top


Post Reply
  • Print view

13 posts
  • Previous
  • 1
  • 2

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