Posted by caschbre on April 28, 2011 at 10:13pm
I've come across an issue where some contrib modules are not updated to work with PHP 5.3. The recommended solution is to downgrade to PHP 5.2.x.
I just started using Quickstart, Ubuntu, VirtualBox. (I know... a lot to learn.)
Anyway, I was curious if it is possible to either downgrade PHP to 5.2.x or install PHP 5.2.x alongside 5.3.x and switch between the two?

Comments
downgrade
There are some tutorials available for downgrading your version of PHP on a Ubuntu system. For example, this: http://www.nickveenhof.be/blog/reverting-or-downgrade-php-53-52-ubuntu-l... (I have not tested this particular one. I'm only using it as an example. You should be able to find more than one with a Google search.)
Also, check to see if you are using the latest version of your contrib modules. If it's possible to update them you might find the issues with PHP 5.3 have been resolved.
I wasn't sure if simply
I wasn't sure if simply downgrading PHP would affect the quickstart setup. Is it simply finding out how to downgrade in ubuntu?
I did check for a newer version of the contrib. Unfortunately there wasn't a newer version.
Thanks for the help!
-
@foggyperspectiv | foggyperspective.com (blog)
D7
One thing I failed to mention, however, is that PHP 5.3 is recommended for D7 and 5.2.5 is the minimum required.
If you're also developing in D7 or plan to upgrade soon, you may wish to take that into consideration.
See http://drupal.org/requirements#php
Hi, For Quickstart, my
Hi,
For Quickstart, my approach is 5.3 is the "out" and is an option for any shared or managed hosting. Any modules not compatible with 5.3 should have issues filed against them because it's a bug. Quickstart is a developer environment, so shouldn't shy away from the issue. 5.3 is likely to be a standard for many D7 modules and D8.
Not all module maintainers agree with me on this so it would be great if there was a script to back Quickstart back down to 5.2.
If someone comes up with a script to do this, I'll include it a "contrib" in the next version of Quickstart. Any takers?
Cheers,
Mie
I agree that PHP 5.3 is the
I agree that PHP 5.3 is the way to go. I'd rather get modules upgraded to work with 5.3 than to downgrade to 5.2.
I previously came from using WAMP where you could install multiple versions of php, apache, mysql, etc. All I had to do was pick which I wanted to use and start up the services. That made it easy to swap back and forth for instances like this.
I wasn't sure if there was anything similar with quickstart.
Thanks for the help!
-
@foggyperspectiv | foggyperspective.com (blog)
AFAIK, the only way to do it
AFAIK, the only way to do it is to "pin" the packages, as described in the linked article. It's not hard, but takes precision and testing. Of course, there may be another way...