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: Installing Moodle using command line.

Installing Moodle using command line: Difference between revisions

From MoodleDocs
No edit summary
Line 4: Line 4:
is recommended only for experienced server administrators. Please note you have to execute the installation script as the same user used for apache. Command line installation is not compatible with Windows platforms.
is recommended only for experienced server administrators. Please note you have to execute the installation script as the same user used for apache. Command line installation is not compatible with Windows platforms.


==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/cli
* Second. Use the following syntax to run the moodle command line installer, ''wwwrun'' is the name of apache user in OpenSuse
:$sudo php install.php
==Options==
More information about the options can be found using
:$php cliupgrade.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.


[[de:Installation von Kommandozeile]]
[[de:Installation von Kommandozeile]]

Revision as of 16:38, 3 June 2009

Template:Moodle 2.0

is recommended only for experienced server administrators. Please note you have to execute the installation script as the same user used for apache. Command line installation is not compatible with Windows platforms.