Dreamhost upgrades their servers to PHP 5.2 (newer is better, right?) and most of their PHP5 customers break. WP 2.1 had a lot of workarounds in it just to run under 5.2. That’s stupid. I’m sure there is a perfectly rational reason why PHP core was “forced” to break existing scripts, but constantly shooting your users in the foot isn’t a good way for PHP to stay relevant. (I write this as someone whose entire company and livelihood is based on PHP.)
35 replies on “PHP5 Issues”
This is one of the major reasons why I hate shared hosting (even though I use it). You never know if an upgrade is going to break things for everybody.
And another reason why PHP has some trouble appealing to “serious” platforms.
Upgrade time always sucks but it doesn’t really matter what your upgraded when you have a language that is constantly growing and finding new ways to improve itself it is going to break things. WP is a great program but upgrading to 2.1 broke a ton of things for us, but in the long run moving forward is worth it…. I guess the price of progress is a little pain sometimes.
Well, im in Lonex right now and they use PHP 4.4, my second choise was BlueHost and they offer custom PHP 4 o 5. I think that a technology so important cant be changed so lightly.
Anita, while dedicated hosting is still much more expensive than shared hosting, it is getting cheaper and cheaper. I just saw some available yesterday for $85 US per month. At that price, it is almost tempting for me. 🙂
While I do not have the millions of customers that you do, I can feel a portion of your pain. I too make my living from PHP programming and I have several clients that use Dreamhost. My staff is busy inspecting code as I type this.
So … time to build a python port of WordPress … “just in case” ? 🙂
… strikes me as a another way not to stay relevant, he adds lightheartedly.
My stuff is hosted on a dedicated box that costs just USD$29/month – dedicated hosting can be cheap.
Of course virtual private servers can be had for a similar price or less, and give you much of the same benefits.
@John — or you can get a $20/month VPS which will be more than enough to run a few WordPress sites. Plus you get the fine control of the software installed, just like a dedicated server.
I am hosted on Dreamhost and i have been using PHP5 for a longtime and even with this issue that creeped up i never suffered any hurdles on my site at all. Hmm is it maybe cuz i use a custom php.ini? i dunno but anyway my site has no troubles on either 2.1 or 2.2 bleeding.
PHP is still a “relevant” language; the lesson here is not to upgrade prematurely just to be “modern”. Security upgrades are one thing, but I’m constantly amazed how many “new feature” releases of just about *any* software has a lot of “features” that most people would call “bugs” – bugs, er, features, that weren’t in previous versions, at that.
Sometimes, it’s better to be stable, than on the cutting edge.
I’ve been using WordPress on PHP 5.2 for quite some time now, even with WordPress 1.5.x and it’s always worked just fine.
Dreamhost shouldn’t have any issues unless they did something funky with the PHP install.
[…] PHP5/Zend Optimizer moÅ¼e spowodowaÄ‡ bÅ‚Ä™dne dziaÅ‚anie niektÃ³rych stron, choÄ‡ jak twierdzi Matt (wspÃ³Å‚twÃ³rca WordPress’a) – WordPress 2.1 ma dostatecznie duÅ¼o obejÅ›Ä‡ dla najnowszej […]
Is there an ASP port of WordPress?
[…] Matt ce matin, on pouvait lire […]
Every Dreamhost’s customer can choose between PHP 4.x and 5.x solution.
Any port except perl!
[…] That other Matt totally beat me to the punch on this one. […]
I just send my web host provider a copy of this and asked him to hold off. He is fortunately conservative about upgrades for exactly this reason.
Sugar Mountain Farm
in the mountains of Vermont
PHP upgrades on my old host (1&1) consistently knocked out my WP blog. They were rarely ever announced ahead of time. Combine that with legendarily inept customer service (every call resulted in an assessment that I was “running too many scripts”, a stock answer), and I’ve got a new host now.
With Fantastico installs of WP and the like, isn’t this something that hosts should be putting top-of-mind before mucking with the PHP? Maybe some better communication/coordination for everyone involved would help.
PHP 5.2.1 was released two days ago – hopefully it will fix some of those problems (and will not break WordPress) 😉
I recently had this issue with another shared host provider and it forced me to rewrite some of the admin plugins I was making use of. People could still view my site, but I could not log into the admin pages.
After working these issues out, I managed to get things working again. It would have been nice to have a warning email, though … I’ve never met a developer that didn’t have a problem with an administrator changing their platform unannounced.
PHP is a great platform to work with. It’s quick, efficient, and has a huge user base with very intelligent people. Hopefully situations such as this will not be common.
I’ve found the Python guys have a really well-thought-out method for staging the introduction of features over several releases.
I still have several v1.5 WP blogs running on PHP 5.2 on both Windows/Apache and Linux/Apache with no problems… maybe these hosts are setting something in the php.ini file that’s breaking compatibility?
Secondly, and I’m not pointing fingers directly at WP (or Matt) on this one, but it seems that a LOT of open-source web apps that rely on PHP and MySQL will break during certain upgrades due to their curious reliance on using features of those packages that are, in even the current versions, deprecated. WP had a huge problem with MySQL 5 in strict mode for this reason – you’re not supposed to write INSERT queries a certain way, but MySQL 4 allowed it (with warnings). MySQL 5 didn’t.
So while upgrading the back-end tech can break things, it’s not always the cause of breakage. Sometimes the web applications are using deprecated functions or features, or are doing things incorrectly to begin with.
This is a problem every shared hosting provider has to deal with. But how long is too long? PHP 5.x has been out for quite some time now. Yet many are still on 4.3, 4.4. When do you make the cutoff?
Quite a few attempt a transition (such as the ability to still run an older version as a cgi), but that still will cause a few clients to break.
It’s a complicated issue. It’s not just PHP. MySQL upgrades aren’t always perfect either. For whatever reason a script or two will break when moving between major releases (3.x –> 4.x, 4.x –> 5.x).
Just part of the pain of web hosting.
Having a dedicated server is a great solution… kind of. You then have the worry about YOUR old scripts breaking during upgrades, and making sure you keep your box up to date and secure. Web hosts do a lot about these that most people never think of. More often that not, people are either too upgrade happy… or quite lax with updates.
For what it’s worth, we had exactly this same problem when we initially upgraded to 5.2.0 at work on the (gs) Grid Server. Fortunately, rolling back is an extremely fast process for us. It is indeed sad that things can break that substantially for a point release.
[…] Importante actualizaciÃ³n de PHP en Dreamhost Publicado 9/02/07 wordpress , Security ActualizaciÃ³n: Al parecer es mÃ¡s una cagada de Dreamhost que un problema de los scripts y php5.2, como era de esperarse. Matt confirma que no debe haber problemas con php5.2. […]
[…] PHP5 Issues – guess I need to do some extra PHP 5.2 testing, though I haven’t had any bug reports yet. […]
Virtual servers are definitely the way forward. Unfortunately they require significantly more sysadmin knowledge to manage than a regular shared hosting account – but there’s great scope for hosts to offer pre-packaged VM images with PHP + MySQL + WordPress already set up, for example.
wow, I guess it was a good thing I was sluggish and haven’t upgraded yet, then!
You can run any version of PHP you want on DreamHost, and it won’t change unless you update it. See http://wiki.dreamhost.com/index.php/Installing_PHP5#Compiling_a_Customized_PHP_5
What’s the difference between WP upgrading its code that breaks many popular plugins, and a host upgrading it’s version of PHP that breaks popular scripts?
Nothing, they’re both equally bad. That’s why, for example, we reinstated the $table* variables that have been deprecated for 2 years now. However it’s a lot harder for us because WP wasn’t originally designed to build applications on top of, where PHP was. They deal with things at a much more primitive level, where it’s a lot easier to maintain backward compat if it was a priority.
[…] Photo Matt Â» PHP5 Issues Amen. I hate, hate, hate it when I can’t move customers forward to newer releases of things like PHP because all the old stuff breaks. Major versions are where you remove things, not .X releases. […]
[…] upgraded PHP and it seems that PHP 5.2 is lacking some backwards compatibility. Neville Hobson, Matt Mullenweg, and others have shared information on this. According to Dreamhost, any version of WordPress under […]