Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Installing Moodle on Debian based distributions.

Installing Moodle on Debian based distributions: Difference between revisions

From MoodleDocs
(Initial version (0.1) Intro and ToC)
 
(Moved to my blog at www.syndrega.ch)
 
(82 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Stub}}
Moved to http://www.syndrega.ch/?p=38.
 
<!--- Categories -->
[[Category:Installation]]
[[Category:Installation]]
[[Category:Installation]]
<p>This page documents how to install Moodle on Debian based distributions. They are tested for Debian 6.0 <em>Squeeze</em> and Ubuntu Server <em>10.04 LTS</em>. These instructions should work for a dozen of Debian or Ubuntu based distributions. But if you are going to put
the server into production use, you are strongly adviced to do a server installation, in the case of Debian the basic installation
without any graphical interface (GUI) and in the case of Ubuntu, get the Server edition which to does not install a GUI by default. If you need Moodle just for you to practice, you can conveniently install Moodle on your Ubuntu-desktop. Or if you plan to work as a team and your institution has a local network (LAN), again you can install Moodle on any Ubuntu flavour and connect it to the LAN to be accessed only within the institution.</p>
<p>These instructions are also generic in the sense that they are valid for all the currently maintained versions of Moodle, from 1.9 to 2.2.</p>
<p><b>Disclaimer:</b>
<ul><li>The public Internet has become a rough terrain. You should not leave a server connected to it, unless you understand a whole lot about security. The  instructions  given on this page just covers the so called 'default installation', without any guarantee on security.</li>
<li>Server maintenance including upgrading, backup, performance tuning and benchmarking too are not part of this documentation.</li>
<li>There is no substitute for thinking. To most part these commands are self-explanatory. If
you are in doubt, invest on building some background knowledge. These instructions are not meant to be 'Mantras' which you can cut and paste in to your command line and execute! If you do that
in the best case you get an error message.  The worst case could be anything. Be warnde.</li></ul></p>
<b>Typography and conventions</b>
<ul></li>Command line dialogs are set in monotype. What you type is in bold, everything else is brought up by the command line interface (CLI). For example:
<code>$ <b>date</b><br />
Son Feb  5 10:04:46 CET 2012</code>
</li>
<li>Command prompt:<br />
The CLI indicates its readiness to accept command by printing a command prompt, or simply the prompt, http://en.wikipedia.org/wiki/Command-line_interface#Command_prompt The typical prompt for a non-privileged Unix user is the $ sign, as in the example above. Don't type the prompt!<br /><br />
Other CLI's have other prompts. For example the MySQL command-line tool 'mysql' shows its readiness through a 'mysql&gt;'<br />
<code>$ <b>mysql -u moodle -p</b><br />
Enter password: [not shown]<br />
mysql&gt;</code>
<br />The MySQL command-line expects SQL commands. For example <br />
<code>mysql&gt; <b>show databases;</b><br />
+--------------------+<br />
| Database          |<br />
+--------------------+<br />
| information_schema |<br />
| moodle            |<br />
+--------------------+<br />
2 rows in set (0.00 sec)<br />
mysql&gt;</code><br />
<b>Commands with superuser privileges</b><br />
All the commands in ths page are executed with superuser privileges. The usual convention in Ubuntu is to be logged in as a non-privileged user and prepend every command with 'sudo' http://en.wikipedia.org/wiki/Sudo (do as superuser) to give it full
privileges. For example:<br />
<code>$ <b>sudo reboot</b></code><br />
Prepending each command with sudo would be tedious for a long list of instructions. Therefore these instructions assume that the non-privileged user has taken over a privileged shell by executing sudo with the option -i. Example:<br />
<code>$ <b>sudo -i</b><br />
[sudo] password for xxx: [not shown]<br />
\# </code><br />
From now on, all the commands automatically have superuser privileges:<br />
<code># <b>reboot</b><br /></code>
<li>Version history:
<ul><li>V 0.1 2012-02-10 ratna</li>
</ul></li></ul>
<h2>Install the Operating System</h2>
<h3>Configure Network</h3>
<h2>Install the Web Server</h2>
<h3>Apache</h3>
<h2>Install the Database Management System</h2>
<h3>MySQL</h3>
<h3>PostgreSQL</h3>
<h2>Install PHP</h2>
<h3>PHP Core</h3>
<h3>PHP Modules</h3>
<h3>PHP CLI</h3>
<h2>Optionally, install a web-based Database Administration Tool</h2>
<h3>phpMyAdmin</h3>
<h3>pgAdmin</h3>
<h2>Install Moodle</h2>
<h3>Get the Code</h3>
<h4>tar</h4>
<h4>CVS</h4>
<h4>Git</h4>
<h3>Create the Database</h3>
<h3>Create the data directory</h3>
<h3>Run the install script</h3>
<h4>Web-based</h4>
<h4>CLI</h4>

Latest revision as of 19:44, 24 March 2013