Installing Moodle using command line: Difference between revisions
From MoodleDocs
No edit summary |
(reformat) |
||
Line 1: | Line 1: | ||
{{Template:Installing Moodle}} | {{Template:Installing Moodle}} | ||
{{Moodle 2.0}} | |||
Installing Moodle Using command line is just as easy as installing Moodle using web browser. | Installing Moodle Using command line is just as easy as installing Moodle using web browser. | ||
==Steps== | |||
* First. Go to the moodle root directory and then to admin directory inside the moodle root. For example type: | |||
:$cd /var/www/html/moodle/admin | |||
* Second. Use the following syntax to run the moodle command line installer (this is a long command which has been split over 3 lines, so type as one line) | |||
:$php cliupgrade.php --lang=en --webaddr=<nowiki>http://www.example.com</nowiki> --moodledir=/var/www/html/moodle --datadir=/var/moodledata --dbtype=mysql --dbhost=localhost --dbname=moodle --dbuser=root --prefix=mdl --verbose=1 --interactivelevel=2 | |||
==Options== | |||
More information about the options can be found using | More information about the options can be found using | ||
$php cliupgrad.php --help | |||
:$php cliupgrad.php --help | |||
Then you will see the following list of available options | Then you will see the following list of available options | ||
:--lang Valid installed language for installation. Default is English(en) | |||
:--webaddr Web address for the Moodle site | |||
:--moodledir Location of the moodle web folder | |||
:--datadir Location of the moodle data folder (should not be web visible) | |||
:--dbtype Database type. Default it mysql | |||
:--dbhost Database host. Default localhost | |||
:--dbname Database name. Default is moodle | |||
:--dbuser Database user. Default is blank | |||
:--dbpass Database password. Default is blank | |||
:--prefix Table prefix for above database tables. Default is mdl | |||
:--verbose 0 No output, 1 Summarized output(Default), 2 Detailed output | |||
:--interactivelevel 0 Non interactive, 1 Semi interactive(Default), 2 Interactive | |||
:--help print out this help | |||
When you choose non interactive mode without any options all the default values are assumed. | When you choose non interactive mode without any options all the default values are assumed. | ||
[[de:Installation von Kommandozeile]] | [[de:Installation von Kommandozeile]] |
Revision as of 11:24, 13 March 2009
Installing Moodle Using command line is just as easy as installing Moodle using web browser.
Steps
- First. Go to the moodle root directory and then to admin directory inside the moodle root. For example type:
- $cd /var/www/html/moodle/admin
- Second. Use the following syntax to run the moodle command line installer (this is a long command which has been split over 3 lines, so type as one line)
- $php cliupgrade.php --lang=en --webaddr=http://www.example.com --moodledir=/var/www/html/moodle --datadir=/var/moodledata --dbtype=mysql --dbhost=localhost --dbname=moodle --dbuser=root --prefix=mdl --verbose=1 --interactivelevel=2
Options
More information about the options can be found using
- $php cliupgrad.php --help
Then you will see the following list of available options
- --lang Valid installed language for installation. Default is English(en)
- --webaddr Web address for the Moodle site
- --moodledir Location of the moodle web folder
- --datadir Location of the moodle data folder (should not be web visible)
- --dbtype Database type. Default it mysql
- --dbhost Database host. Default localhost
- --dbname Database name. Default is moodle
- --dbuser Database user. Default is blank
- --dbpass Database password. Default is blank
- --prefix Table prefix for above database tables. Default is mdl
- --verbose 0 No output, 1 Summarized output(Default), 2 Detailed output
- --interactivelevel 0 Non interactive, 1 Semi interactive(Default), 2 Interactive
- --help print out this help
When you choose non interactive mode without any options all the default values are assumed.