Updating PHP from 7.4.30

Oh Boy, am I lost.
I have been using the Local website to learn how to update a clubs website, so if I mess up my Local site the real site is still safe.
It seems my Local PHP of 7.4.30 needs to be updated to something around 8..3. My webserver is shown as nginx
After about 3 hours of searching I am still no wiser as to how to update.
Is there a simple option to update? If I cannot update I will have no choice but to leave it as it is. I did find a link about updating and to contact my web server for instructions but nginx was not listed. I got so confused on their website I gave up, being a not tech OAP does not help!
Is there a simple way, or any advice appreciated.
Many thanks

See above


Sorry no steps


MySQL 8.6.35

Win 11 Operating System (OS) and latest OS version:**


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hey @ajw1100 , let’s see if we can get you pointed in the right direction!

You should be able to update the version of PHP for a site from the site overview page. Just click the PHP version and select a newer one:

So that will give you a new version of PHP, but there’s the possibility that the PHP code that’s running on the site (ie, the WP core files and any plugins or themes that are installed) isn’t compatible with the 8.x version of PHP.

PHP 8.x offers some pretty significant changes from the 7.x line. Many popular WP plugins and themes did a good job of upgrading and making changes backwards compatible. As such, my recommended workflow for upgrading would look something like:

  1. Import a site into Local, using PHP 7.4.30
  2. Update all plugins and themes to their latest version
  3. Update Local core to the latest version
  4. Update the PHP version to a newer, 8.x version. You might want to verify that your server has the ability to update to an 8.x version. If it does, then it probably makes sense to use the version that your hosting provider offers and match that version in Local.
  5. QA things in Local and ensure everything looks good
  6. If things look good, upgrade the software versions on the remote host!

Hi Ben.
Thank you for your email and helpful advice. I am not really any sort of ‘webmaster’ I took over as nobody else would when our club webmaster succumbed to Cancer.
I have found that our Club site is hosted by EcoHosting and according to the CPanel the PHP is shown as 8.2.23.
My Local site PHP is 7.4.30. I worked upwards from 7.4.30 and got to 8.0.30 which downloaded and installed, however the home page still stated this was out of date and not supported.
I then tried a higher number but all I got was a tab showing an endless series of dots and it got no further.
If you have any suggestions (Simple ones please) as to how to update the PHP please let me know.
I do not want to/cannot update the software on the Host (Or downgade) I just need to upgrade my Local WP website.

I do not know what you mean by up dating the Local ‘Core’
Regards
Alan

Hey @ajw1100!

I can give you some steps here as a workaround to try and get your PHP version raised.

You’ll start by exporting a copy of your site and saving that zip file to your desktop. You can see how to do that on the link below:

Once you’ve done that, go ahead and delete the site from your Local app. With the site deleted, now drag and drop your zip file copy of the site over the Local application and reimport it. When you do this as you go through the configuration settings make sure the PHP and other options are set to what you want.

There are details on importing from that same help document link above if you need.

Hi Nick-B.

Thank you for the information and the link. I have printed it out so hopefully won’t get it wrong, famous last words!

Regards

Alan.

Sounds good @ajw1100! :green_heart:

Hi Nick-B.

Thought I’d try an update from the front page of my Local install, the page that shows the PHP version. This time it worked, I was able to update one version at a time and now have it up to 8.2.23 I think that maybe I tried to update too far ahead and so it froze. I guess it could have been me being impatient.

Anyway it seems to be okay now. Except that I note a couple of warnings on my sites home page, something about performance and security, so I will probably be back……..:frowning:

Hi Nick-B.

Thank you for the information and the link. I have printed it out so hopefully won’t get it wrong, famous last words!

Regards

Alan.

1 Like

Glad that you were able to get this working, @ajw1100!

If we can help with other Local issues, feel free to start a new thread.