If you use cron, take care that is executeable and uses the correct php command: chmod 740 admin/cli/(some configurations need chmod 750 or chmod 755) copy the first line from (if it looks like '#! /usr/local/bin/php5.3', no need to copy ' if necessary.You can use Git for updating or upgrading your Moodle. On Linux servers, Moodle 2.4 supports running the upgrade from the command line, rather than through a web browser.
This is likely to be more reliable, particularly for large sites.The last step is to trigger the upgrade processes within Moodle. Moodle will automatically detect the new version and perform all the SQL database or file system upgrades that are necessary. Note: You can only upgrade to Moodle 2.4 from Moodle 2.2 or later.If upgrading from earlier versions, you must upgrade to 2.2 as a first step.
There are three areas that should be backed up before any upgrade: Don't forget to make moodle/(and the rest of the source code) readable by your www server.Ideally the files should not be writeable by your server.