We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Old PHP Version On VestaCP
Old PHP Version On VestaCP
Hello! I'm using Debian 8 + VestaCP setup. PHP was updated to version 7.2 and console shows proper PHP version:
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?
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 )
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?
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: Old PHP Version On VestaCP
I hope you restart apache or php-fpm after upgrade?nkizza wrote: ↑Wed Dec 11, 2019 1:06 pmHello! I'm using Debian 8 + VestaCP setup. PHP was updated to version 7.2 and console shows proper PHP version:
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.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 )
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?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Old PHP Version On VestaCP
You need to dis-associate Apache with your old PHP version using and then associate with desired version of PHP using
Code: Select all
a2dismod
Code: Select all
a2enmod