Note: You are currently viewing documentation for Moodle 3.4. Up-to-date documentation for the latest stable version of Moodle is likely available here: Administration via command line.

Talk:Administration via command line

From MoodleDocs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Did a fresh install of 2.2, but I don't have the folder cd /var/www/sites/moodle/htdocs/

It's just missing, do you know where I can get it?

 $ cd /var/www/sites/moodle/htdocs/
  $ git fetch
  $ sudo -u apache /usr/bin/php admin/cli/maintenance.php --enable
  $ git merge origin/cvshead
  $ sudo -u apache /usr/bin/php admin/cli/upgrade.php
  $ sudo -u apache /usr/bin/php admin/cli/maintenance.php --disable

-- My command line says: $ sudo: unknown user: apache Any ideas? Tom Greenfield (talk) 03:54, 17 March 2016 (AWST)