MODx Revolution on Wamp with PHP 5.2.x
In this short post I am going to cover the workaround to a problem I’ve run into installing MODx Revolution (currently in Beta 5) on Wampserver. I am using the most current version of Wampserver at the time of this posting – 2.0i, with Apache 2.2.11, MySQL 5.1.36, and PHP 5.2.11. By default Wampserver 2.0 comes with PHP 5.3.0 but you can add on other versions of Apache, MySQL and PHP and switch between them as needed. I’ve been running Wampserver with the 5.2.11 version of PHP because I’m working on some old projects that haven’t quite caught up with 5.3 yet and throw a lot of errors when I try to run them in 5.3.
When I start the install, it works fine until the point where the Installation Summary shows up and I get an error regarding the MySQL client version.
The error reads:
Checking MySQL client version: Failed!
MODx will have issues on your MySQL version (5.0.51a), because of the many bugs related to the PDO drivers on this version. Please upgrade MySQL to patch these problems. Even if you choose not to use MODx, it is recommended you upgrade to this version for the security and stability of your own website
I can’t continue with the install at this point because of this error. MODx Revolution will not work with MySQL client version 5.0.51 and 5.0.51a because of “serious bugs with PDO”. You can read more about this in the MODx docs.
If I look at phpinfo(), this is what I get under MySQL:
One solution that I tried was to install MySQL 5.1.41 but that didn’t resolve the issue.
What seemed to finally work was to run Wampserver in its default state with PHP 5.3.0 selected. Suddenly, the install went through successfully, no problems.
Looking at the phpinfo() page now with PHP 5.3.0 running gives me:
If you’re like me and you’re running a version of Wampserver with PHP 5.2.x and are having these issues, go to http://www.wampserver.com/en/addons_php.php and download PHP 5.3.x and install it, this should resolve the Revolution installation issue.
I’m not 100% certain of the relationship between the server and client versions of MySQL or how the version of PHP plays into the whole equation, so if anyone can enlighten me on this by leaving a comment that would be great 🙂 This may just be an issue of version matching with the way Wampserver builds its stack. In any case, I hope this helps someone out there who’s been wanting to mess with Revo and been having issues with Wampserver.