Topic: Upgrading php 5.6.x to 7.3 on CentOS 7 with Nginx and php-fpm
Hello
I saw the helpful Wizard on Remi website, but it doesn't cover what I'd like: to upgrade PHP 5.6.19 to 7.3 latest -- *without* changing current paths. In essence I'd like to overwrite the php 5.6.19 to php 7.3.
From my understanding, as Remi suggests, paths like /etc/php-fpm/*.conf will need to change to /etc/php73-fpm/*.conf, etc. Which is cumbersome because that means I'll have to change paths in various places across Nginx conf, across crontabs for backup, etc.
I find there are important settings in these places:
1. /etc/php-fpm.d/www.conf
2. /etc/php.ini
3. /etc/php-fpm.conf
4. /etc/nginx/common.conf
5. /etc/nginx/fastcgi.conf
And of course the Nginx.conf (the main Ngnix config file) has calls to PHP-FPM accordingly. They include the #4 file above, common.conf, which in turn includes the `fastcgi.conf`.
Instructions on external websites, such as Cyberciti do not take into account Nginx and PHP-FPM specifics especially in terms of old PHP 5.6.19 already existing. I am not allowed to post too many links as this is my first posting here, but links are in the Server Fault thread too, where someone recommended to visit this website: https://serverfault.com/questions/95271 … 825_952713
All these instructions anyway speak of "php72" (or, therefore, php73) which I am afraid will change all the paths, and I'll have to update all paths to new php links everywhere. This is also not future proof. If PHP 7.4 is launched, will it then need "php74" folders everywhere?
Could you please advise how best to do this so I seamless upgrade the old PHP with the latest, with all the usual paths as above working and basically "overwrite" PHP 5.6?
Thanks!