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

Old PHP Version On VestaCP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
nkizza
Posts: 1
Joined: Wed Dec 11, 2019 12:48 pm

Os: Debian 7x
Web: apache + nginx
Old PHP Version On VestaCP
  • Quote

Post by nkizza » Wed Dec 11, 2019 1:06 pm

Hello! I'm using Debian 8 + VestaCP setup. PHP was updated to version 7.2 and console shows proper PHP version:

Code: Select all

user@comp:~/conf/web$ php -v
PHP 7.2.21-1+0~20190807.25+debian8~1.gbp935ebf (cli) (built: Aug  7 2019 20:35:39) ( NTS )
But <?php phpinfo(); ?> script shows version 5.6. I'm using custom website template, which is a copy of default VestaCP template (I only changed paths to docroot), so there's no explicit setting to use this specific version of PHP.

I'm good with using one version for all websites on this server, but I can't figure out why it's 5.6 and not 7.2.

Could you please advice what can I do?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: Old PHP Version On VestaCP
  • Quote

Post by grayfolk » Wed Dec 11, 2019 10:45 pm

nkizza wrote: ↑
Wed Dec 11, 2019 1:06 pm
Hello! I'm using Debian 8 + VestaCP setup. PHP was updated to version 7.2 and console shows proper PHP version:

Code: Select all

user@comp:~/conf/web$ php -v
PHP 7.2.21-1+0~20190807.25+debian8~1.gbp935ebf (cli) (built: Aug  7 2019 20:35:39) ( NTS )
But <?php phpinfo(); ?> script shows version 5.6. I'm using custom website template, which is a copy of default VestaCP template (I only changed paths to docroot), so there's no explicit setting to use this specific version of PHP.

I'm good with using one version for all websites on this server, but I can't figure out why it's 5.6 and not 7.2.

Could you please advice what can I do?
I hope you restart apache or php-fpm after upgrade?
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: Old PHP Version On VestaCP
  • Quote

Post by mehargags » Sun Dec 15, 2019 9:39 am

You need to dis-associate Apache with your old PHP version using

Code: Select all

a2dismod
and then associate with desired version of PHP using

Code: Select all

a2enmod
Top


Post Reply
  • Print view

3 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