Change your php version in cPanel
March 13, 2018
If you have noticed issues on your WordPress website and are unable to pinpoint if its a plugin or theme causing the issue, I may have a solution for you.
A while back, I was working on a clients website and uploading new images. However, the process of uploading the images was very slow and would often time throw up some obscure error. Of course, I went into troubleshooting mode. I ripped the site down to a local version with the intent of disabling plugins one by one until I found the problem. I went to upload an image and … no problems. I tried another and nothing went wrong. All the same plugins were activated, the same theme was running. Nothing had really changed or so I thought.
After digging a little deeper, I remembered that I was running PHP 7.1 locally. I went back to the live site and sure enough, it was running PHP 5.4.
Here is how to change it.
- Log into your websites cPanel.
- Find PHP selector. It should be under the software section
- From here you will see a drop-down menu that lets you choose your PHP version. Select 7 or 7.1 and hit update.
- All done.
This has fixed a lot of my WordPress problems that for the life of me I couldn’t figure out in the past. I hope it helps you.
