Hostgator upgrades PHP version, what to do?

They are right to do this, fix your website. It will improve performance and save you from a lot of trouble later

No update is ever right, I hate them all. But, eh, it is what it is :D

DONT WORRY
WORDPRESS 6.0 IS HEREEEE
to save the day, to make your life more diffcult.
They probably break 10 more things with the current themes/plugins etc etc etc :eek:

Ughhhh go away satan :D
 
7.4 is the most stable version and is used by all hosting, plus all websites should be compactible with it and from 7 you’ll see better results so for a change they didn’t make a bad decision
 
So I got my website updated, it's running on PHP 7.4 now.

I tried comparing the backup from before the update and now, and I can't really see what changes were made :oops:

I put the old and new backup in folders next to each other, and I compared sizes and amounts of files in folders, and deleted all that were identical. What's left is only 1 folder with some weird names and weird files. That can't be the PHP upgrade. I don't know, maybe it is.

I also looked in File Manager to see which files/folder were updated today, and again only that 1 folder shows.

Seeing as I can't locate what was done to make the update, I can't try to update my other site by myself :oops:

Oh well...

I have 2 sites that are just HTML/CSS type sites. They don't seem to be having any problems or needing any updates, ever, ever, EVER! I'm gonna try and stick with HTML sites from now on. They're just, peace of mind, low cost, no cost, no stress, no headache, no problem, all love :)
 
We maintain an application for a financial institution in Germany. We weren't the original developers, it was built by some other agency. We were brought in to manage it.

It's a nightmare to update it to the latest PHP, since the script has a ton of moving parts. We first broke it down and made most of it modular, we then changed the way APIs interacted with each other. And finally, we began the painstaking process of bringing it to the latest version of PHP where needed and introducing a varied stack of other languages/tech where needed.

Now, PHP 7.x has a lot of functions that were removed and a lot of incompatibilities with the release of PHP 8.0 - you can check the full list here. From reserved keywords to error handling, a lot has changed.

In order to mitigate this, while we updated the code, we resorted to using CloudLinux - it is an OS for hosting providers that has a product offering known as HardenedPHP - what they do is basically provide access to old versions of PHP, but they actively keep monitoring any vulnerabilities or bugs and keep patching them. It is seamless, and you as a user won't know the difference. If your developers are charging you a lot or if you'd rather wait till you update, you can consider opting for a hosting provider that offers CloudLinux. With HardenedPHP - you'll not be forcefully updated.

Basically, the point of concern is that with this update, the PHP Team has basically broken backward compatibilities. Compatibility is broken only when functions or features that were previously bundled in the language are either removed or renamed or a newer, more optimized ways of running them are introduced.

There's no question that PHP 8.x is more secure, more optimized and does everything PHP - only better. So if you can update, then do it.
 
We maintain an application for a financial institution in Germany. We weren't the original developers, it was built by some other agency. We were brought in to manage it.

It's a nightmare to update it to the latest PHP, since the script has a ton of moving parts. We first broke it down and made most of it modular, we then changed the way APIs interacted with each other. And finally, we began the painstaking process of bringing it to the latest version of PHP where needed and introducing a varied stack of other languages/tech where needed.

Now, PHP 7.x has a lot of functions that were removed and a lot of incompatibilities with the release of PHP 8.0 - you can check the full list here. From reserved keywords to error handling, a lot has changed.

In order to mitigate this, while we updated the code, we resorted to using CloudLinux - it is an OS for hosting providers that has a product offering known as HardenedPHP - what they do is basically provide access to old versions of PHP, but they actively keep monitoring any vulnerabilities or bugs and keep patching them. It is seamless, and you as a user won't know the difference. If your developers are charging you a lot or if you'd rather wait till you update, you can consider opting for a hosting provider that offers CloudLinux. With HardenedPHP - you'll not be forcefully updated.

Basically, the point of concern is that with this update, the PHP Team has basically broken backward compatibilities. Compatibility is broken only when functions or features that were previously bundled in the language are either removed or renamed or a newer, more optimized ways of running them are introduced.

There's no question that PHP 8.x is more secure, more optimized and does everything PHP - only better. So if you can update, then do it.

Brilliant :)

I already had 2 of my sites updated. I paid $40 each, which is not a lot I guess. But the developer said he can update max to version 7.4.

I hope v7.4 is available on Hostgator for as long as I remain hosted with them. If they disable those options too and move to versions 8+ only, I'll probably have to change hosting, or pay more to get the site updated to it (if it's even possible).

Anyway the guy updated my sites to PHP 7.4, and just earlier I found a small bug, so now I'm waiting for him to fix it. Hopefully he can fix it...

Anyway, thanks for the comprehensive reply. Always can count on you to drop knowledge :)
 
So I wake up today and I find a small issue on one of my sites. I check a bit further and find the PHP version has been updated to PHP 7.4

I contact Hostgator, they tell me:

We are proactively upgrading customers to newer versions of PHP for security and usability; we know this may impact some older sites but we are able to manually roll back the change for you at this time. I must advise you, however, that anything older than PHP 73 will be going away in the next few months (as it will not be supported by Apache, which is the a service that is integral to your web server) and encourage you to update your site to run on PHP 73 or greater before that time. Could you please let me know the domain name you want help with?

Problem is, I have a site which requires 7.0 and two sites which require 7.1 to work. Anyway maybe they'd also work on 7.2, but that doesn't really matter as Hostgator will only be allowing PHP 7.3 and 7.4 going forward.

So do I update these sites or change my hosting?

I guess I wonder, is this going to haunt me wherever I go where hosting providers just completely do away with older version of PHP?

I also wonder, how much work is it to "update" a website in order to make it work for latest versions of PHP. Is it a small job with a few lines of code edited, or is it a huge job with the entire coding of the site needing a rewrite?

@BlogPro
Get a VPS or dedicated server so you can run your own php versions at will :)
 
Back
Top