This is something I came across recently when setting up this website. At the time of writing, my host was Hostgator and I use cPanel to manage the backend.
Upon finalising the WordPress installation, I tried to access the website but was greeted by the message, “Your server is running PHP version 5.4.45 but WordPress 5.2.2 requires at least 5.6.20”. The website itself as well as wp-admin were inaccessible due to this.
Here’s how to fix it:
- Open cPanel and search for ‘PHP’
- Click MultiPHP Manager
- Check the box next to your website and then in the top right hand corner select the latest stable PHP version and then apply