How to fix when cPanel reflects wrong PHP version

If cPanel is reflecting the wrong PHP version in cPanel –> Server Information

Use the steps below to fix the issue.

rm -f /etc/apache2/conf.d/php.version
cat /etc/apache2/conf.d/php.version


After running these commands, you should restart the Apache web server to ensure that the changes take effect:


Note that depending on your cPanel installation and configuration, there may be additional steps required to ensure that the correct PHP version is being used by all services on the server. If you continue to experience issues with PHP version mismatches, you may need to consult with a qualified system administrator or cPanel support for further assistance.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *