Page 1 of 1

How can I update PHP-FPM from 7.2 to 7.3?

Posted: Fri Feb 08, 2019 11:15 pm
by tlozano
I had do a fresh install of Ubuntu 18.04 and VestaCP and all is working fine, but I'd like to update from php 7.2 to 7.3.
I'm using Nginx and PHP-FPM and I do some test, but i doesn't work fine for me.
I'm able to install php 7.3 with this:

Code: Select all

sudo apt-get install php7.3-fpm php7.3-cli php7.3-mysql php7.3-gd php7.3-imagick php7.3-recode php7.3-tidy php7.3-xmlrpc
And then I test it with php -v and the version is 7.3, but...
when i test it from web, with

Code: Select all

 <?php phpinfo( ); ?> 
 
it's remain at 7.2 version, and if I rebuild the web, it brokes and get a 404 error.

What is the correct way to do the update?.

Thank you.

Re: How can I update PHP-FPM from 7.2 to 7.3?

Posted: Thu Jul 15, 2021 12:45 pm
by conste
I have the same problem. My system is Ubuntu 18.04, nginx/1.19.6

My update CMS requires php7.3 thus I always get a pop-up reminder.

As you have done, I have installed php7.3-fpm. On the command line, ensuing the

Code: Select all

php -v
provides a php 7.3 version. However, I still get a pop-up reminder on my website.

After some inspection, I have done the following:
1. I copied the contents of

Code: Select all

/etc/php/7.2/fpm/pool.d
to

Code: Select all

/etc/php/7.3/fpm/pool.d
2. I deleted the symbolic link

Code: Select all

/etc/init.d/php-fpm -> /etc/init.d/php7.2-fpm
3. I created a symbolic link of

Code: Select all

/etc/init.d/php-fpm -> /etc/init.d/php7.3-fpm
4. Restarted php-fpm using

Code: Select all

systemctl restart php-fpm
A check after that gives me php 7.3 on my CMS.