Page 1 of 1

Upgrade php to 7.2 in ubuntu + nginx Vestacp server

Posted: Wed May 23, 2018 10:26 am
by vesta
I followed Online tutorial and I installed php 7.2

php -v in terminal gives following output

Code: Select all

PHP 7.2.5-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: May  5 2018 04:59:13) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.5-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
But phpinfo() in my website still shows php 7.0 , . I tried restarting

Code: Select all

sudo systemctl restart nginx
, still same .Should I mention somewhere so vestacp use php 7.2 ?

Re: Upgrade php to 7.2 in ubuntu + nginx Vestacp server

Posted: Wed May 23, 2018 12:11 pm
by grayfolk
If you use nginx+apache restart apache, if used nginx+php-fpm - restart php-fpm.