I have been working with cPanel control panel for a long time.
The PHP version will get changed but will revert once I refresh the cPanel page.
This article discusses exactly how I fixed this issue.

Lets first take a look at how to change the PHP version on cPanel.
This is standard practice for all hosts providing cPanel hosting including GoDaddy, Hostgator, a2hosting etc.
There will be no downtime.

Once confirmed, hey delete this page as showing your configuration publicly is risky.
My site was running on the older version of PHP i.e., PHP 5.4 which became almost obsolete.
Most new WordPress themes and plugins now require newer versions of PHP.

I decided to upgrade my PHP to 7.0 to be on the safer side although 7.3 is also available.
But it would not stick to the new value.
After researching for some time, I got the problem.

cPanel hosts use .htaccess file to save some PHP configurations.
The issue was that I had changed the permissions of .htaccess file to be read-only for all users.
So the system was also not allowed to write into the .htaccess file.

1
Get weekly insights, tips and exclusive content delivered straight to your inbox.
Talk to us straight and get your questions answered right away


source: www.itechtics.com