We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

PHP?

Development and Programming

Caja's avatar
Caja
9 posts
4 years ago
Caja's avatar Caja

Hi, I’m wondering what PHP version one SHOULD have? We seem to have 7.0.33?

       
TheFlagLord's avatar
TheFlagLord
1 posts
4 years ago
TheFlagLord's avatar TheFlagLord

There are several versions of the PHP interpreter available: 7.2, 7.3, and 7.4, as well as the deprecated 5.2-7.1. But they are no longer supported by PHP developers and may have vulnerabilities. Use them at your own risk, and only if you have code that doesn’t work with newer versions.

       
Caja's avatar
Caja
9 posts
4 years ago
Caja's avatar Caja

We have a person that is supposed to keep our website up to date with such things but I realised today that he might not and that he has lied to the people before me who has no clue about websites. Wanted to know before I have a discussion with him tomorrow, but generally yes we should have a newer version of PHP?

       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

In general use the latest version you can. Most servers will allow you to change the version you run easily enough.

You can sometimes get errors with the latest version, i.e 7.4, where some PHP code hasn’t been updated (often with 3rd party addons). In cases like that I usually go back and use a previous version, i.e. 7.3 or 7.2 to get things working.

       
Caja's avatar
Caja
9 posts
4 years ago
Caja's avatar Caja

Let’s say I do upgrade to like 7.4 and get issues, can I easily revert back to the one I do have without there being other issues? Asking since I saw I could change PHP version in Nexcess/SiteWorx.

       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

Yes you can swap versions at any time you want, and the change should be instantaneous.

I normally do changes like this out of hours so if there are errors site visitors shouldn’t see them.

So try 7.4, check your public pages and the admin/control panel. If you find errors make a note of them, they can often point to the culprit. If the errors aren’t immediately fixable, try 7.3 and retest, failing that 7.2.

šŸ‘† 1
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.