How to update PHP & WordPress version
-
Hi,
I have unfortunately been running an outdated version of php (have only just realised) and am trying to update this but keep crashing my site.
I am currently on php version 5.4.45 and my site is hosted with HostGator. Through HostGator cpanel I have the option to update to php versions 7.0 or newer from the php manager, but when I do this I get the white screen of death and can’t then access my wp-admin to update the WordPress to a newer version than the one I have currently.
I can’t update the WordPress version first as a newer version isn’t compatible with php I have.
Feeling a bit stuck as I can’t put a newer version of WordPress on without updating my php but if I update my php version, this crashes the site and I can’t access my dashboard to then update the WordPress version to one that is compatible.
I have this message on my dashboard:
An updated version of WordPress is available.You cannot update because WordPress 5.5.2 requires PHP version 5.6.20 or higher. You are running version 5.4.45.
I am thinking I need to update my php and then perhaps do a manual WordPress version update through FTP on my HostGator site. Is this the best option or am I missing something that’s a bit more straightforward.
Thank you for your help
- The topic ‘How to update PHP & WordPress version’ is closed to new replies.