Are Drupal 6 & 7 sites compatible with PHP 5.4?

Events happening in the community are now at Drupal community events on www.drupal.org.
CoreyTravel's picture

I just got this notice from my hosting company that they are upgrading their servers to PHP 5.4. See below.

Any concerns if I have Drupal 6 or Drupal 7 sites on their servers?

Any info or comments would be appreciated.

Thanks,
Corey

P.S. For some wired reason my Drupal.org account seems to have been deleted? IT was Gasman DEsign and now it's gone?!?!?

From my hosting company....
We're writing to inform you of an important change in your server's default configuration that may affect your websites. The default version of PHP employed by our servers will be updated to PHP 5.4 on 4/25/2014.

Comments

Some info (and your accounts aren't gone!)

Barry Madore's picture

Hey Corey:

I'm not a PHP or hosting expert so I'd wait to hear more detailed info from someone who is, but there is a page on drupal.org that discusses Drupal's PHP requirements -- https://drupal.org/requirements/php. Near the bottom is info about each version of Drupal in relation to PHP. It looks like you shouldn't be too worried about D7 but that PHP 5.4 may pose some problems for D6 sites. Again, read what's there and dig further with others who know more.

In the meantime, a quick search shows that the Gasman Design account is alive and well on both Drupal.org and groups.drupal.org:

https://drupal.org/user/1327246
https://groups.drupal.org/user/895969

Cheers,

Barry

Barry Madore
Triplo
Minneapolis-St. Paul, MN

Should be fine, but do all of your updates

davidneedham's picture

Hi Corey. I've had a lot of clients asking for help with this very problem as web hosts start upgrading their minimum version of PHP. In D7 you just need to update core and all modules and it should totally be fine as is (unless a particular module says it has some particular dependency).

In Drupal 6, start by updating everything, as older versions of core and some modules may not be 100% compatible. Once everything is up to date and you flip over to PHP5.4, you may notice a ton of useless PHP warnings / notices. These can and should be ignored, and the unfortunate solution is making sure that error reporting for these are disabled. You can do this from the Drupal UI at "Site Configuration" -> "Error Reporting" -> and change "Error Reporting" to "Write Errors to the log" to keep them from being printed to the screen, but I'd do this in php.ini as well (if you have access to that).

As with most things, make backups before and after, and if it's worth the hassle, test locally before you flip the switch on the server.

--
David Needham
Team Lead of Training at Datadog

Twin Cities

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: