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

Talk:Administration via command line: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 27: Line 27:


Indeed, very important, and also should be added to the most recent 3.1 stable wiki page too. --[[User:Nadav Kavalerchik|Nadav Kavalerchik]] ([[User talk:Nadav Kavalerchik|talk]]) 21:11, 27 July 2016 (AWST)
Indeed, very important, and also should be added to the most recent 3.1 stable wiki page too. --[[User:Nadav Kavalerchik|Nadav Kavalerchik]] ([[User talk:Nadav Kavalerchik|talk]]) 21:11, 27 July 2016 (AWST)
Thank you! --[[User:Nadav Kavalerchik|Nadav Kavalerchik]] ([[User talk:Nadav Kavalerchik|talk]]) 00:08, 28 July 2016 (AWST)

Revision as of 16:08, 27 July 2016

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)

--

Is it worth mentioning that on ubuntu the user name is www-data not apache? e.g.

$ sudo -u apache /usr/bin/php admin/cli/upgrade.php

becomes

$ sudo -u www-data /usr/bin/php admin/cli/upgrade.php

Indeed, very important, and also should be added to the most recent 3.1 stable wiki page too. --Nadav Kavalerchik (talk) 21:11, 27 July 2016 (AWST) Thank you! --Nadav Kavalerchik (talk) 00:08, 28 July 2016 (AWST)