Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

Administration via command line

De MoodleDocs
La revisió el 09:23, 27 maig 2009 per Petr Škoda (škoďák) (discussió | contribucions) (New page: {{Moodle 2.0}} Some large scale deployments or special distributions may prefer command line environment when installing or upgrading Moodle. All command line tools are located in <code>ad...)
(dif.) ← Versió més antiga | Versió actual (dif.) | Versió més nova → (dif.)
Salta a:navegació, cerca

Plantilla:Moodle 2.0 Some large scale deployments or special distributions may prefer command line environment when installing or upgrading Moodle. All command line tools are located in admin/cli/*

Installation

Advanced cli installation script.

Command line Moodle installer, creates config.php and initializes database.
Please note you must execute this script with the same uid as apache
or use chmod/chown after installation.
Site defaults may be changed via local/defaults.php.
Options:
--lang=CODE           Installation and default site language.
--wwwroot=URL         Web address for the Moodle site, required in non-interactive mode.
--dataroot=DIR        Location of the moodle data folder, must not be web accessible. Default is moodleroot in parent directory.
--dbtype=TYPE         Database type. Default is mysqli
--dbhost=HOST         Database host. Default is localhost
--dbname=NAME         Database name. Default is moodle
--dbuser=USERNAME     Database user. Default is root
--dbpass=PASSWORD     Database password. Default is blank
--dbsocket            Use database sockets. Available for some databases only.
--prefix=STRING       Table prefix for above database tables. Default is mdl_
--admin-password=PASS Password for the moodle admin account, required in non-interactive mode.
--non-interactive     No interactive questions, installation fails if any problem encountered.
--agreelicense        Indicates agreement with software license, required in non-interactive mode.
-h, --help            Print out this help
Example: \$sudo -u wwwrun /usr/bin/php admin/cli/install.php --lang=cs


Upgrade

Command line Moodle upgrade.
Please note you must execute this script with the same uid as apache!
Site defaults may be changed via local/defaults.php.
Options:
--non-interactive     No interactive questions or confirmations
-h, --help            Print out this help
Example: \$sudo -u wwwrun /usr/bin/php admin/cli/upgrade.php