12
Nov/090
Nov/090
Install Moodle 2.0 on PHP 5.2.0 or higher
While installing Moodle 2.0, I ran into a little problem. It says that it requires a minimum PHP version of 5.2.8 – but I was running 5.2.6. Updating PHP in Ubuntu is a pain in the bum, so instead, I used this little hack.
A quick look at the source for install.php reveals this on line 489:
$version_fail = (version_compare(phpversion(), “5.2.8″) < 0);
If you just change 5.2.8 to your version (in my case, 5.2.6), it will install. There aren’t heaps of changes between these two versions, so I’m hoping there won’t be any major side effects!