0
I have a centos 6 Linux server with a whm and cpanel installed. I've recently updated the PHP version to 7 through the whm and applied it to the website on the server in both whm and cpanel in the multi-PHP version screen.
This all looks okay in the cpanel and when I check PHP version in ssh it says 7.2. But when I go back to WordPress it still says its running PHP 5.6 and showing the PHP update required message in the WordPress dashboard.
When I delete the PHP 5.6 version from the whm the website goes down so it has to be connected to the whm somehow. How do I point the website to use php7.2?
Have you restarted your webserver since upgrading? – Kinnectus – 2019-08-29T13:19:31.617
I've restarted nginx. – Danny Connolly – 2019-08-29T13:22:05.600
1Ok, so you probably run PHP-FPM. Try restarting this, or restart the entire server. It'll be because your PHP config will still have old because the service is running, restart and the new config will read – Kinnectus – 2019-08-29T14:29:32.533
I gracefully rebooted the server and it is now working. Good job you suggested it also, I had already done it but I think the ajax on the cpanel timed out so it looks like it's still rebooting. Crisis Averted. Thanks – Danny Connolly – 2019-08-29T14:36:29.920