Website update to PHP 5.4 FAIL!


So, I was happy to see that my Drupal 6 site survived being moved to PHP 5.4. (I had always meant to do that, but it never rose to the top of my list.) And, when the server moved to a 64-bit machine, it wouldn’t run because the stuff described here:

The problem was that the php.cgi it created was still a 32-bit binary.

However, this morning I was looking at the status page on my website and I discovered that the site was still running on php 5.2. I checked the Dream host email again, and my site had indeed been migrated. I looked at the control panel for the domain, and it too thought that the php version was 5.4. And then I thought, “Ahhh, I bet it is the php-update stuff again,” and so it was. It took quite a bit to tinkering to get the scripts switched over to using php54.

I don’t recall the Wiki page describing the things to watch out for as part of the PHP 5.4 migration even mentioning php-update, but then again no mention was made of it during the migration of the 64-bit machine.

So, my guess is that there are a lot of web masters who think that the migration went well, and whose websites are going to go down when the php 5.2 support is dropped in November.

It would be great if the Advanced_PHP_configuration were updated for 5.3 and 5.4!

Mike S


OK, a quick update on this.

  1. I just thought that I had the Advanced_PHP_configuration working on 5.4. However I was wrong. I never did get it to work. I just managed to switch the site to using php 5.4 natively without a local php.ini file.
  2. At first I thought that Drupal 6 would work with PHP 5.4, but I was incorrect here too. There is a hold bunch of Strict Warnings errors, not all of which have patches for them. (Drupal 6 was trying to maintain compatibility with PHP 4.) As I was hunting down the patch for what I hoped would be the last set, I came across a message on the Drupal forum stating that Drupal 6 is incompatible with PHP 5.4.

So, frak it, I switched back to PHP 5.3 and things are working again.

The irony of it all is that my plan this weekend was to learn enough about Drupal 7 to switch my website to it.