<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/test/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mstous</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/test/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mstous"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/Special:Contributions/Mstous"/>
	<updated>2026-04-22T00:47:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Streaming_Media&amp;diff=25275</id>
		<title>Streaming Media</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Streaming_Media&amp;diff=25275"/>
		<updated>2007-07-23T17:30:58Z</updated>

		<summary type="html">&lt;p&gt;Mstous: New multimedia organizer page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Types of Streaming Media ==&lt;br /&gt;
&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Adobe_Flash Flash]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/MPEG-4 MPEG-4]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Quicktime Quicktime] &lt;br /&gt;
* [http://en.wikipedia.org/wiki/RealVideo RealVideo]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Windows_Media_Video Windows Media Video]&lt;br /&gt;
&lt;br /&gt;
== Sources of Streaming Servers ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Commercial&#039;&#039;&#039;&lt;br /&gt;
* Adobe - [http://www.adobe.com/products/flashmediaserver/ Flash Media Server 2] (Flash)&lt;br /&gt;
* Apple - [http://www.apple.com/quicktime/streamingserver/ Quicktime Streaming Server] (Quicktime, MP3, and MPEG4)&lt;br /&gt;
* Real Networks - [http://www.realnetworks.com/products/media_delivery.html Helix Server] (All formats)&lt;br /&gt;
* Microsoft - [http://www.microsoft.com/windows/windowsmedia/forpros/serve/prodinfo.aspx Windows 2003 Media Services] (WMV)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Free (Open Source)&#039;&#039;&#039;&lt;br /&gt;
* Apple - [http://developer.apple.com/opensource/server/streaming/index.html Darwin Streaming Server] (Quicktime, MP3, and MPEG4)&lt;br /&gt;
* Real Networks - [http://helix-server.helixcommunity.org/ Helix DNA server] (Real Media and MP3)&lt;br /&gt;
* OSFlash - [http://osflash.org/red5 Red5 Open Source Flash Server] (Flash and MP3)&lt;br /&gt;
&lt;br /&gt;
== Lecture Delivery Systems ==&lt;br /&gt;
&lt;br /&gt;
* Accordnet (commercial) - [http://accordent.com/products/med_mngm_prod/med_mngm_sys/med_mngm_sys.html Media Management System] (Sits on top of Helix server) [http://accordent.com/democase/prod_demos/edu_demo.html Demos]&lt;br /&gt;
* University of Toronto (open source) - [http://epresence.tv/products ePresence Interactive Media ] (Sits on top of Open Source Products) [http://epresence.tv/Presentation/2 Overview] [http://epresence.tv/mediacontent/archives/2005_oct20orlando/?archiveID=170 Older Overview]&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* [http://streaming411.com/wiki/Darwin_Streaming_Server Darwin Installation]&lt;br /&gt;
* [http://streaming411.com/wiki/Hinting_QuickTime_Movies Hinting Quicktime movies for streaming]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Administrator_documentation&amp;diff=25274</id>
		<title>Administrator documentation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Administrator_documentation&amp;diff=25274"/>
		<updated>2007-07-23T16:12:55Z</updated>

		<summary type="html">&lt;p&gt;Mstous: Added new organizer page for Streaming Media&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The purpose of this page is to list useful links by general topics for administrators.&lt;br /&gt;
&lt;br /&gt;
== Installation &amp;amp; Upgrading ==&lt;br /&gt;
&lt;br /&gt;
*[[Installation Quickstart]] for an overview of the installation steps&lt;br /&gt;
*[[Installing Moodle]] for detailed installation instructions&lt;br /&gt;
*[[Installation FAQ]]&lt;br /&gt;
*[[Installing AMP|Installing Apache, MySQL and PHP]]&lt;br /&gt;
*[[Upgrading|Upgrading Moodle]]&lt;br /&gt;
&lt;br /&gt;
== System-specific Instructions &amp;amp; Packages ==&lt;br /&gt;
&lt;br /&gt;
* [[SUSE Linux Server 10|Automated Installation Guide for SUSE Linux Enterprise Server 10]] operating system&lt;br /&gt;
* [[RedHat Linux installation|Step by Step Installation Guide for RedHat]] operating system&lt;br /&gt;
* [[Debian GNU/Linux installation|Step by Step Installation Guide for Debian GNU/Linux]] operating system&lt;br /&gt;
* [[Step-by-step Install Guide for Ubuntu]]&lt;br /&gt;
* [[Windows installation|Complete Install Packages for Windows XP and instructions for Windows NT/2000/2003 servers]]&lt;br /&gt;
* [[Complete Install Packages for Mac OS X]]&lt;br /&gt;
* [[Step-by-step Guide for Installing Moodle on Mac OS X 10.4 Client | Step-by-Step Guide for Installing Moodle using the internal web server on Mac OS X 10.4 Client]]&lt;br /&gt;
* [[1and1_MySQL_installation | Installation on 1and1 web hosting]]&lt;br /&gt;
&lt;br /&gt;
==Security, Performance and Roles==&lt;br /&gt;
&lt;br /&gt;
*[[Security]] contains important security procedures for a production site&lt;br /&gt;
*[[Performance | Performance and optimization]] for ideas on improving the speed of your installation&lt;br /&gt;
*[[Manage roles | Managing roles]] For Moodle 1.7 and later&lt;br /&gt;
&lt;br /&gt;
== FAQs ==&lt;br /&gt;
&lt;br /&gt;
*[[Installation FAQ]]&lt;br /&gt;
*[[Administration FAQ]]&lt;br /&gt;
*[[Backup FAQ]]&lt;br /&gt;
&lt;br /&gt;
== Configuration Settings ==&lt;br /&gt;
&lt;br /&gt;
*[[Variables]]&lt;br /&gt;
*[[Site settings]]&lt;br /&gt;
*[[Themes]]&lt;br /&gt;
*[[Language]]&lt;br /&gt;
*[[Modules (administrator)|Modules]]&lt;br /&gt;
*[[Blocks (administrator)|Blocks]]&lt;br /&gt;
*[[Filters (administrator)|Filters]]&lt;br /&gt;
*[[Backup (administrator)|Backup]]&lt;br /&gt;
*[[Editor settings]]&lt;br /&gt;
*[[Calendar (administrator)|Calendar]]&lt;br /&gt;
*[[Maintenance mode]]&lt;br /&gt;
&lt;br /&gt;
* See also: [[Location of admin settings in 1.7|Comparison between configuration settings in Moodle 1.6 &amp;amp; 1.7]]&lt;br /&gt;
&lt;br /&gt;
==User Management==&lt;br /&gt;
&lt;br /&gt;
*[[Authentication]]&lt;br /&gt;
*[[Edit user accounts]]&lt;br /&gt;
*[[Edit profile|Add a new user]]&lt;br /&gt;
*[[Flat file|Upload users]]&lt;br /&gt;
*[[Enrolment plugins]]&lt;br /&gt;
*[[Courses (administrator)|Enrol students]]&lt;br /&gt;
*[[Courses (administrator)|Assign teachers]]&lt;br /&gt;
*[[Assign creators]]&lt;br /&gt;
*[[Assign administrators]]&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
&lt;br /&gt;
*[[Courses (administrator)|Courses]] and [[Course formats|course formats]]&lt;br /&gt;
*[[Logs]]&lt;br /&gt;
*[[Site files]]&lt;br /&gt;
*[[Moodle database|Database]]&lt;br /&gt;
*[[Environment]]&lt;br /&gt;
*[[Moodle Network]] and Moodle Community Hub&lt;br /&gt;
*[[Streaming Media]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[:Category:Administrator | Index of all Administrator-related pages]]&lt;br /&gt;
*[[Integrations]]&lt;br /&gt;
*[[CVS (administrator)|CVS documentation]]&lt;br /&gt;
*[[Email processing]]&lt;br /&gt;
*[[Search engine optimization]]&lt;br /&gt;
*[[Messaging]]&lt;br /&gt;
*[[Migration]]&lt;br /&gt;
*[[Metacourses]]&lt;br /&gt;
*[[Block layout]]&lt;br /&gt;
*[[Customizing Moodle]]&lt;br /&gt;
*[[Administrator do&#039;s and don&#039;ts]]&lt;br /&gt;
*[http://download.moodle.org/docs/using_moodle/ch16_server_admin.pdf Using Moodle Chapter 16: Moodle Administration]&lt;br /&gt;
&lt;br /&gt;
[[Category: Administrator]]&lt;br /&gt;
[[cs:Rukověť správce]]&lt;br /&gt;
[[es:Documentación para Administradores]]&lt;br /&gt;
[[fr:Documentation administrateur]]&lt;br /&gt;
[[ja:管理者ドキュメント]]&lt;br /&gt;
[[ko:관리자 문서]]&lt;br /&gt;
[[nl:Documentatie voor beheerders]]&lt;br /&gt;
[[ru:Администраторам]]&lt;br /&gt;
[[zh:管理员文档]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Installing_Moodle&amp;diff=21193</id>
		<title>Installing Moodle</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Installing_Moodle&amp;diff=21193"/>
		<updated>2007-03-07T04:42:32Z</updated>

		<summary type="html">&lt;p&gt;Mstous: added link to postgresql and mysql install on Ubuntu (Debian)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Firstly don&#039;t panic! :-)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This guide explains how to install Moodle for the first time. For some of these steps it goes into a lot of detail to try and cover the majority of possible web server setups, so this page may look long and complicated. Don&#039;t panic, once you know how to do it you can install Moodle in minutes!&lt;br /&gt;
&lt;br /&gt;
If you have problems please read this page carefully - most common issues are answered in here. If you still have trouble, you can seek help from the Moodle community via  [http://moodle.org/course/view.php?id=5 moodle.org Using Moodle].&lt;br /&gt;
&lt;br /&gt;
Another option is to contact a [http://moodle.com/hosting/ Moodle Partner providing Moodle hosting] who can completely maintain Moodle for you, so that you can ignore all this and get straight into educating!&lt;br /&gt;
&lt;br /&gt;
If you want to run Moodle on your own computer and this page looks a bit daunting, then please see our guides: [[Installing AMP |Installing Apache, MySQL and PHP(AMP)]] or [[Complete install packages| how to install one of Moodle&#039;s complete packages]]. They provide alternative instructions to install all this on most popular platforms.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
Moodle is primarily developed in Linux using [[Apache]], [[MySQL]] and [[PHP]] (also sometimes known as the LAMP platform), but is also regularly tested with Windows XP/2000/2003 (WAMP), Solaris 10 (Sparc and x64), Mac OS X and Netware 6 operating systems. Support for PostgreSQL, Oracle and Microsoft SQL Server is also available.&lt;br /&gt;
&lt;br /&gt;
The requirements for Moodle are as follows:&lt;br /&gt;
&lt;br /&gt;
* Hardware (unless you are using a hosted server). &lt;br /&gt;
** Disk space: 160MB free (min). You will require more free space to store your teaching materials.&lt;br /&gt;
** Memory: 256MB (min), 1GB (recommended). The general rule of thumb is that Moodle can support 50 &#039;&#039;concurrent&#039;&#039; users for every 1GB of RAM, but this will vary depending on your specific hardware and software combination. &lt;br /&gt;
* Software&lt;br /&gt;
** Web server software. Most people use [[Apache]], but Moodle should work fine under any web server that supports [[PHP]], such as [[IIS]] on Windows platforms. PHP does impose requirements on versions of web servers, however these are complex and the general advice is to use the newest version possible of your chosen web server. &lt;br /&gt;
** PHP scripting language. (Please note that there have been issues installing Moodle with [http://www.php-accelerator.co.uk PHP-Accelerator]). There are currently two versions (or branches) of PHP available: PHP4 and PHP5.&lt;br /&gt;
*** For Moodle 1.4 or later, PHP4 (version 4.1.0 or later) or PHP5 (version 5.1.0 or later) are supported.&lt;br /&gt;
*** For Moodle version 1.6 or later, the PHP4 (version 4.3.0 or later) or PHP5 (version 5.1.0 or later) are supported. &lt;br /&gt;
*** Future Moodle versions 2.0 or later will not support PHP4 and will require PHP5 (version 5.1.0 or later).&lt;br /&gt;
** A working database server: [[MySQL]] or [[PostgreSQL]] are completely supported and recommended for use with any version of Moodle. Support for Microsoft SQL Server and Oracle has been added in Moodle 1.7. MySQL is &#039;&#039;the&#039;&#039; choice for many people because it is very popular, but there are some [[Arguments in favour of PostgreSQL|arguments in favour of PostgreSQL]], especially if you are planning a large deployment. &lt;br /&gt;
*** For Moodle 1.5 or later, MySQL (version 3.23 or later) or PostgreSQL (7.4 or later). &lt;br /&gt;
*** For Moodle 1.6 or later, MySQL (version 4.1.12 or later or PostgreSQ: (7.4 or later).&lt;br /&gt;
*** &#039;&#039;&#039;Notes&#039;&#039;&#039;: For Moodle 1.6 or later, If you use latin languages only you can use MySQL 4.1.12. If you are using non-latin languages you require MySQL 4.1.16 or later. Currently the MySQL setting &amp;quot;strict mode&amp;quot; should be OFF (set to &amp;quot;&amp;quot; or &amp;quot;MYSQL40&amp;quot;) in the MySQL configuration file. The minimum version of PostgreSQL is 7.4 and it is widely used with 8.0 and 8.1. The minimum version of Microsoft SQL Server is 2005 (version 9). There has also been [http://moodle.org/mod/forum/discuss.php?d=59284 some success] with SQL Server Express 2005. &lt;br /&gt;
* Additional PHP requirements&lt;br /&gt;
** PHP Settings&lt;br /&gt;
*** Safe mode needs to be OFF (check in your php.ini or Apache configuration file).&lt;br /&gt;
*** The setting &#039;&#039;memory_limit&#039;&#039; to be at least 16M (32M is recommended for Moodle 1.7 or later).&lt;br /&gt;
*** The PHP setting &#039;&#039;session.save_handler&#039;&#039; needs to be set to files. &lt;br /&gt;
** PHP Extensions and libraries&lt;br /&gt;
*** The mbstring extension is required for multi-byte string handling.&lt;br /&gt;
*** The iconv extension is also recommended for Moodle 1.6 or later.&lt;br /&gt;
*** [http://www.boutell.com/gd/ GD library] and the [http://www.freetype.org/ FreeType 2] library and extensions are needed to be able to look at the dynamic graphs that the logs pages make.&lt;br /&gt;
*** The mysql extension is required if you are using the MySQL database. Note that in some Linux distributions (notably Red Hat) this is an optional installation.&lt;br /&gt;
*** The pgsql extension is required if you are using the PostgreSQL database.&lt;br /&gt;
*** The zlib extension is required for zip/unzip functionality.&lt;br /&gt;
*** Other PHP extensions may be required to support optional Moodle functionality, especially external authentication and/or enrolment (e.g. LDAP extension for LDAP authentication and the sockets extension for Chat server).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note if you are using a hosted account&#039;&#039;&#039;: Most web hosts support all of these requirements by default. You should contact your web host&#039;s support desk to check that this is the case &#039;&#039;&#039;before&#039;&#039;&#039; signing-up with them. If you are already signed up with one of the few web hosts that does not support these features ask them why, and consider taking your business elsewhere if they do not change.&lt;br /&gt;
&lt;br /&gt;
== How many users? ==&lt;br /&gt;
&lt;br /&gt;
In addition to the hardware and software requirements, you will also need to think about the capacity of your Moodle installation in terms of the number of users it can handle. There are two numbers to plan for:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Browsing users&#039;&#039;&#039;: the maximum number of users able to browse your Moodle site. This is the number of computers in your organization or on your course (whichever is greater).&lt;br /&gt;
* &#039;&#039;&#039;Concurrent database users&#039;&#039;&#039;: the maximum number of concurrent database users (needed for Moodle activities such as quizzes). This is the number of users who will be using Moodle at the same time. In an educational institution, use your timetable/roster to obtain this figure.&lt;br /&gt;
&lt;br /&gt;
Once you know these figures for your users, you can start work out if your Moodle installation can support this capacity. The exact number of users depends on your hardware/software/network combination. Usually the amount of memory installed (RAM) is the deciding factor but a faster overall processor speed will also help in reducing waiting times for pages to load. &lt;br /&gt;
&lt;br /&gt;
The general rule of thumb for a single server is that the approx max concurrent users = RAM (GB) * 50 and the approx max browsing users = Approx max concurrent users * 5. As an example, a university with 500 total computers on campus and 100 concurrent users at any time will need approx 2GB of RAM on the one server to support the number of concurrent users.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note if you are using a hosted account&#039;&#039;&#039;: Ask your provider what limits are placed on the number of concurrent database connections and the processor load. This will give a good estimate of the number of users your Moodle install can manage.&lt;br /&gt;
&lt;br /&gt;
== Download and copy files into place ==&lt;br /&gt;
&lt;br /&gt;
There are two ways to get Moodle, either as a compressed package or via CVS. &lt;br /&gt;
* There are two types of compressed packages on the  [http://download.moodle.org/ download page: http://download.moodle.org/], the standard distribution with Moodle only files and the [[Complete install packages|complete install]], which contains programs to operate Moodle in a web environment.  &lt;br /&gt;
* To use CVS, helpful instructions are available at the [[CVS_for_Administrators | CVS for Administrators]] page. The full [http://moodle.cvs.sourceforge.net/moodle/moodle/ Moodle Sourceforge CVS repository] is also available for browsing. &lt;br /&gt;
&lt;br /&gt;
After downloading, unpack the archive using either &lt;br /&gt;
 tar -zxvf [filename]&lt;br /&gt;
or&lt;br /&gt;
 unzip [filename]&lt;br /&gt;
as appropriate. &lt;br /&gt;
&lt;br /&gt;
If using CVS, run the CVS Checkout command.&lt;br /&gt;
&lt;br /&gt;
You will now be left with a directory called &amp;quot;moodle&amp;quot;, containing a number of files and folders.&lt;br /&gt;
&lt;br /&gt;
You can either place the whole folder in your web server documents directory, in which case the site will be located at &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://yourwebserver.com/moodle&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;, or you can copy all the contents straight into the main web server documents directory, in which case the site will be simply &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://yourwebserver.com&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If you are downloading Moodle to your local computer and then uploading it to your web site, it is usually better to upload the whole archive as one file, and then do the unpacking on the server. Even web hosting interfaces like cPanel allow you to uncompress archives in the &amp;quot;File Manager&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Structure of moodle directory ===&lt;br /&gt;
&lt;br /&gt;
You can safely skip this section, but here is a quick summary of the contents of the Moodle folder, to help get you oriented:&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;config.php&#039;&#039; - contains basic settings. This file does not come with Moodle - you will create it.&lt;br /&gt;
:&#039;&#039;install.php&#039;&#039; - the script you will run to create config.php&lt;br /&gt;
:&#039;&#039;version.php&#039;&#039; - defines the current version of Moodle code&lt;br /&gt;
:&#039;&#039;index.php&#039;&#039; - the front page of the site&lt;br /&gt;
:&#039;&#039;admin/&#039;&#039; - code to administrate the whole server&lt;br /&gt;
:&#039;&#039;auth/&#039;&#039; - plugin modules to authenticate users&lt;br /&gt;
:&#039;&#039;blocks/&#039;&#039; - plugin modules for the little side blocks on many pages&lt;br /&gt;
:&#039;&#039;calendar/&#039;&#039; - all the code for managing and displaying calendars&lt;br /&gt;
:&#039;&#039;course/&#039;&#039; - code to display and manage courses&lt;br /&gt;
:&#039;&#039;doc/&#039;&#039; - help documentation for Moodle (eg this page)&lt;br /&gt;
:&#039;&#039;files/&#039;&#039; - code to display and manage uploaded files&lt;br /&gt;
:&#039;&#039;lang/&#039;&#039; - texts in different languages, one directory per language&lt;br /&gt;
:&#039;&#039;lib/&#039;&#039; - libraries of core Moodle code&lt;br /&gt;
:&#039;&#039;login/&#039;&#039; - code to handle login and account creation&lt;br /&gt;
:&#039;&#039;mod/&#039;&#039; - all the main Moodle course modules are in here&lt;br /&gt;
:&#039;&#039;pix/&#039;&#039; - generic site graphics&lt;br /&gt;
:&#039;&#039;theme/&#039;&#039; - theme packs/skins to change the look of the site.&lt;br /&gt;
:&#039;&#039;user/&#039;&#039; - code to display and manage users&lt;br /&gt;
&lt;br /&gt;
== Setting-up your system==&lt;br /&gt;
To ensure that Moodle will install successfully, you need to check that the web server settings are correct, then create a blank database for Moodle to use and finally create a directory on your hard disk for Moodle to save your materials and other files you upload into your courses.&lt;br /&gt;
&lt;br /&gt;
=== Check web server settings ===&lt;br /&gt;
&lt;br /&gt;
*Firstly, make sure that your web server is set up to use index.php as a default page (perhaps in addition to index.html, default.htm and so on). In Apache, this is done using a DirectoryIndex parameter in your httpd.conf file. Mine usually looks like this:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;DirectoryIndex&#039;&#039;&#039; index.php index.html index.htm&lt;br /&gt;
&lt;br /&gt;
:Just make sure index.php is in the list (and preferably towards the start of the list, for efficiency).&lt;br /&gt;
&lt;br /&gt;
*Secondly, &#039;&#039;&#039;if you are using Apache 2&#039;&#039;&#039;, then you should turn on the &#039;&#039;AcceptPathInfo&#039;&#039; variable, which allows scripts to be passed arguments like &amp;lt;nowiki&amp;gt;http://server/file.php/arg1/arg2&amp;lt;/nowiki&amp;gt;. This is essential to allow relative links between your resources, and also provides a performance boost for people using your Moodle web site. You can turn this on by adding these lines to your httpd.conf file.&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;AcceptPathInfo&#039;&#039;&#039; on&lt;br /&gt;
&lt;br /&gt;
=== Check PHP settings ===&lt;br /&gt;
Moodle requires a number of PHP settings to be active for it to work. &#039;&#039;&#039;On most servers these will already be the default settings&#039;&#039;&#039;.  However, some PHP servers (and some of the more recent PHP versions) may have things set differently. These are defined in PHP&#039;s configuration file (usually called &#039;&#039;&#039;php.ini&#039;&#039;&#039;):&lt;br /&gt;
&lt;br /&gt;
 magic_quotes_gpc = 1    (preferred but not necessary)&lt;br /&gt;
 magic_quotes_runtime = 0    (necessary)&lt;br /&gt;
 file_uploads = 1&lt;br /&gt;
 session.auto_start = 0&lt;br /&gt;
 session.bug_compat_warn = 0&lt;br /&gt;
&lt;br /&gt;
:You may also want to set other, optional php.ini file settings while you are already editing it. For instance, you may want to reset the maximum upload size of file attachments, which usually defaults to 2M(egabytes). For instance, to set these to 16 Megabytes:&lt;br /&gt;
 &lt;br /&gt;
 post_max_size = 16M&lt;br /&gt;
 upload_max_filesize = 16M&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Using a .htaccess file for webserver and PHP settings ===&lt;br /&gt;
&lt;br /&gt;
Use the above if you can directly edit your server&#039;s files, but if you are setting-up Moodle on a webhost, or don&#039;t have access to &#039;&#039;&#039;httpd.conf&#039;&#039;&#039; or &#039;&#039;&#039;php.ini&#039;&#039;&#039; on your server, or you have Moodle on a server with other applications that require different settings, then don&#039;t worry, you can often still override the default settings. This only works on Apache servers and only when Overrides have been allowed in the main Apache configuration.&lt;br /&gt;
&lt;br /&gt;
* Create a file called &#039;&#039;&#039;.htaccess&#039;&#039;&#039; in Moodle&#039;s main directory that contains lines like the following. &lt;br /&gt;
&lt;br /&gt;
 DirectoryIndex index.php index.html index.htm&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;IfDefine APACHE2&amp;gt;&lt;br /&gt;
     &#039;&#039;&#039;AcceptPathInfo&#039;&#039;&#039; on&lt;br /&gt;
 &amp;lt;/IfDefine&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 php_flag magic_quotes_gpc 1&lt;br /&gt;
 php_flag magic_quotes_runtime 0&lt;br /&gt;
 php_flag file_uploads 1&lt;br /&gt;
 php_flag session.auto_start 0&lt;br /&gt;
 php_flag session.bug_compat_warn 0&lt;br /&gt;
&lt;br /&gt;
* Optionally, you can also do things like define the maximum size for uploaded files:&lt;br /&gt;
&lt;br /&gt;
 LimitRequestBody 0&lt;br /&gt;
 php_value upload_max_filesize 2M&lt;br /&gt;
 php_value post_max_size 2M&lt;br /&gt;
     &lt;br /&gt;
* The easiest thing to do is just copy the sample file from lib/htaccess and edit it to suit your needs. It contains further instructions. For example, in a Unix shell:&lt;br /&gt;
&lt;br /&gt;
 cp lib/htaccess .htaccess&lt;br /&gt;
&lt;br /&gt;
=== Creating an empty database ===&lt;br /&gt;
&lt;br /&gt;
You need to create an empty database (eg &amp;quot;&#039;&#039;moodle&#039;&#039;&amp;quot;) in your database system along with a special user (eg &amp;quot;moodleuser&amp;quot;) that has access to that database (and that database only). You could use the &amp;quot;root&amp;quot; user if you wanted to for a test server, but this is not recommended for a production system: if hackers manage to discover the password then your whole database system would be at risk, rather than just one database.&lt;br /&gt;
&lt;br /&gt;
::&#039;&#039;&#039;Warning&#039;&#039;&#039;: Bear in mind that, as of Moodle version 1.5.x, Moodle doesn&#039;t work with MySQL 5.x&#039;s strict mode setting (STRICT_TRANS_TABLES and/or STRICT_ALL_TABLES) -- see [http://moodle.org/mod/forum/discuss.php?d=58552 forum discussion]. So if you are using MySQL 5.x, edit MySQL&#039;s configuration file (called &amp;quot;my.ini&amp;quot; in Windows and &amp;quot;my.cnf&amp;quot; on Unix/Linux) and comment out that option or set it to sql-mode=&amp;quot;&amp;quot; (single quotes). You have to restart MySQL after changing this setting. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; If you do not have access to your server, use PHPMyAdmin (or another MySQL client) and enter the command SET @@global.sql_mode=&amp;quot;&amp;quot; (single quotes); (note the semi-colon).&lt;br /&gt;
&lt;br /&gt;
====Using a hosted server====&lt;br /&gt;
If you are using a webhost, they will probably have a control panel web interface for you to create your database.&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;[http://www.cpanel.com/ cPanel]&#039;&#039;&#039; system is one of the most popular of these. To create a database in cPanel,&lt;br /&gt;
&lt;br /&gt;
# Click on the &amp;quot;&#039;&#039;&#039;MySQL Databases&#039;&#039;&#039;&amp;quot; icon.&lt;br /&gt;
# Type &amp;quot;moodle&amp;quot; in the database field and click &amp;quot;&#039;&#039;&#039;Add Database&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
# Type a username and password (not one you use elsewhere) in the respective fields and click &amp;quot;&#039;&#039;&#039;Add User&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
# Now use the &amp;quot;&#039;&#039;&#039;Add User to Database&#039;&#039;&#039;&amp;quot; button to give this new user account &amp;quot;&#039;&#039;&#039;ALL&#039;&#039;&#039;&amp;quot; rights to the new database.&lt;br /&gt;
# Note that the username and database names may be prefixed by your cPanel account name. When entering this information into the Moodle installer - use the full names.&lt;br /&gt;
&lt;br /&gt;
====Using the command line====&lt;br /&gt;
&lt;br /&gt;
If you have access to Unix or Windows command lines then you can do the same sort of thing by typing commands. You should do this using the MySQL Client program&lt;br /&gt;
&lt;br /&gt;
Here are some example MySQL client command lines (the red part is for Moodle 1.6 and later, leave it out for Moodle 1.5.x or earlier):&lt;br /&gt;
&lt;br /&gt;
   # mysql -u root -p&lt;br /&gt;
   &amp;gt; CREATE DATABASE moodle &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci&amp;lt;/font&amp;gt;; &lt;br /&gt;
   &amp;gt; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.*&lt;br /&gt;
           TO moodleuser@localhost IDENTIFIED BY &#039;yourpassword&#039;; &lt;br /&gt;
   &amp;gt; quit &lt;br /&gt;
   # mysqladmin -u root -p reload&lt;br /&gt;
&lt;br /&gt;
If you are using MySQL 4.0.2 or later, you need to specify CREATE TEMPORARY TABLES as well in the GRANT statement:&lt;br /&gt;
&lt;br /&gt;
   &amp;gt; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,&lt;br /&gt;
           DROP,INDEX,ALTER ON moodle.* &lt;br /&gt;
           TO moodleuser@localhost IDENTIFIED BY &#039;yourpassword&#039;; &lt;br /&gt;
&lt;br /&gt;
There are step by step instructions on  [https://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu#Install_MySQL_.28skip_Postgresql.29 MySQL installation for Ubuntu(Debian)] available.&lt;br /&gt;
&lt;br /&gt;
And some example command lines for PostgreSQL:&lt;br /&gt;
&lt;br /&gt;
   # su - postgres&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;create user moodleuser createdb;&amp;quot; template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;create database moodle &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;with encoding &#039;unicode&#039;&amp;lt;/font&amp;gt;;&amp;quot; -U moodleuser template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;alter user moodleuser nocreatedb;&amp;quot; template1&lt;br /&gt;
   &amp;gt; psql -c &amp;quot;alter user moodleuser with encrypted password &#039;yourpassword&#039;;&amp;quot; template1&lt;br /&gt;
   &amp;gt; su - root&lt;br /&gt;
   # /etc/init.d/postgresql reload&lt;br /&gt;
&lt;br /&gt;
If the Postgres create database command above (&amp;gt;psql -c &amp;quot;create database moodle...&amp;quot;) gives an error message you may want to try:&lt;br /&gt;
 psql -c &amp;quot;create database moodle with template=template1 encoding = &#039;unicode&#039; owner =  moodleuser &amp;lt;br&amp;gt;     location = &#039;/var/mydata&#039;;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
There are step by step instructions on  [https://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu#Install_Postgresql_.28skip_MySQL.29 Postgresql installation for Ubuntu(Debian)] available.&lt;br /&gt;
&lt;br /&gt;
=== Creating the data directory (moodledata) ===&lt;br /&gt;
&lt;br /&gt;
Moodle will also need some space on your server&#039;s hard disk to store uploaded files, such as course documents and user pictures. The Moodle installer tries hard to create this directory for you but if it fails then you will have to create a directory for this purpose manually.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Security warning&#039;&#039;&#039;: For security purposes, it&#039;s best that this directory is NOT accessible directly via the web. The easiest way to do this is to simply locate it OUTSIDE the web directory, but if you must have it in the web directory (and you are using Apache) then protect it by creating a file in the data directory called &#039;&#039;&#039;.htaccess&#039;&#039;&#039;, containing this line:&lt;br /&gt;
&lt;br /&gt;
 deny from all&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Permissions&#039;&#039;&#039;: To make sure that Moodle can save uploaded files in this directory, check that the web server software has permission to read, write and execute in this directory. On Unix machines, this means setting the owner of the directory to be something like &amp;quot;nobody&amp;quot; or &amp;quot;apache&amp;quot;, and then giving that user read, write and execute permissions. To do this you could use:&lt;br /&gt;
&lt;br /&gt;
 chown -R nobody:nobody moodledata&lt;br /&gt;
&lt;br /&gt;
Remember by default, moodle will issue a warning about moodle data directories created inside the web directory, but otherwise this directory can be located where you wish. You can later move or change the location of this directory, but if you do, be sure to edit the setting in the &#039;&#039;&#039;config.php&#039;&#039;&#039; file that sets this; e.g. if moodledata is under a directory called data, then it would look like this:&lt;br /&gt;
&lt;br /&gt;
 $CFG-&amp;gt;dataroot  = &#039;/data/moodledata&#039;;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CPanel and webhosts&#039;&#039;&#039;: On cPanel systems you can use the &amp;quot;File Manager&amp;quot; to find the folder, click on it, then choose &amp;quot;Change Permissions&amp;quot;. On many shared hosting servers, you will probably need to restrict all file access to your &amp;quot;group&amp;quot; (to prevent other webhost customers from looking at or changing your files), but provide full read/write access to everyone else (which will allow the web server to access your files). Speak to your server administrator if you are having trouble setting this up securely. In particular it will not be possible to create a usable data directory on sites that use a PHP feature known as &amp;quot;&#039;&#039;&#039;Safe Mode&#039;&#039;&#039;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Run the installer script to create config.php ==&lt;br /&gt;
&lt;br /&gt;
To run the installer script (install.php), just try to access your Moodle main URL using a web browser, or access &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://yourserver/install.php&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; directly.&lt;br /&gt;
&lt;br /&gt;
(The Installer will try to set a session cookie. If you get a popup warning in your browser make sure you accept that cookie!)&lt;br /&gt;
&lt;br /&gt;
Moodle will detect that configuration is necessary and will lead you through some screens to help you create a new configuration file called &#039;&#039;&#039;config.php&#039;&#039;&#039;. At the end of the process Moodle will try and write the file into the right location, otherwise you can press a button to download it from the installer and then upload &#039;&#039;&#039;config.php&#039;&#039;&#039; into the main Moodle directory on the server.&lt;br /&gt;
&lt;br /&gt;
Along the way the installer will test your server environment and give you suggestions about how to fix any problems. For most common issues these suggestions should be sufficient, but if you get stuck, check in the Installation Forum for more help. &lt;br /&gt;
&lt;br /&gt;
== Go to the admin page to continue configuration ==&lt;br /&gt;
&lt;br /&gt;
Once the basic config.php has been correctly created in the previous step, trying to access the front page of your site will take you the &amp;quot;admin&amp;quot; page for the rest of the configuration.&lt;br /&gt;
&lt;br /&gt;
The first time you access this admin page, you will be presented with a GPL &amp;quot;shrink wrap&amp;quot; agreement with which you must agree before you can continue with the setup.&lt;br /&gt;
&lt;br /&gt;
Now Moodle will start setting up your database and creating tables to store data. Firstly, the main database tables are created. You should see a number of SQL statements followed by status messages (in green or red) that look like this:&lt;br /&gt;
&lt;br /&gt;
{| border=1&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;CREATE TABLE course ( id int(10) unsigned NOT NULL auto_increment, category int(10) unsigned NOT NULL default &#039;0&#039;, password varchar(50) NOT NULL default &#039;&#039;, fullname varchar(254) NOT NULL default &#039;&#039;, shortname varchar(15) NOT NULL default &#039;&#039;, summary text NOT NULL, format tinyint(4) NOT NULL default &#039;1&#039;, teacher varchar(100) NOT NULL default &#039;Teacher&#039;, startdate int(10) unsigned NOT NULL default &#039;0&#039;, enddate int(10) unsigned NOT NULL default &#039;0&#039;, timemodified int(10) unsigned NOT NULL default &#039;0&#039;, PRIMARY KEY (id)) TYPE=MyISAM&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;SUCCESS&amp;lt;/font&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
...and so on, followed by: &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;Main databases set up successfully.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t see these, then there must have been some problem with the database or the configuration settings you defined in config.php. Check that PHP isn&#039;t in a restricted &amp;quot;Safe Mode&amp;quot; (commercial web hosts sometimes have safe mode turned on). You can check PHP variables by creating a little file containing &#039;&#039;&#039;&amp;lt;?php phpinfo() ?&amp;gt;&#039;&#039;&#039; and looking at it through a browser. Check all these and try this page again.&lt;br /&gt;
&lt;br /&gt;
Scroll down the very bottom of the page and press the &amp;quot;Continue&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
You should now see a form where you can define more configuration variables for your installation, such as the default language, SMTP hosts and so on. Don&#039;t worry too much about getting everything right just now - you can always come back and edit these later on using the admin interface. The defaults are designed to be useful and secure for most sites. Scroll down to the bottom and click &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If (and only if) you find yourself getting stuck on this page, unable to continue, then your server probably has what I call the &amp;quot;buggy referrer&amp;quot; problem. This is easy to fix: just turn off the &amp;quot;secureforms&amp;quot; setting, then try to continue again.&lt;br /&gt;
&lt;br /&gt;
Next you will see more pages that print lots of status messages as they set up all the tables required by the various Moodle module. As before, they should all be &amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;green&amp;lt;/font&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Scroll down the very bottom of the page and press the &amp;quot;Continue&amp;quot; link.&lt;br /&gt;
&lt;br /&gt;
The next page is a form where you can define parameters for your Moodle site and the front page, such as the name, format, description and so on. Fill this out (you can always come back and change these later) and then press &amp;quot;Save changes&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Finally, you will then be asked to create a top-level administration user for future access to the admin pages. Fill out the details with your own name, email etc and then click &amp;quot;Save changes&amp;quot;. Not all the fields are required, but if you miss any important fields you&#039;ll be re-prompted for them.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Make sure you remember the username and password you chose for the administration user account, as they will be necessary to access the administration page in future.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
(If for any reason your install is interrupted, or there is a system error of some kind that prevents you from logging in using the admin account, you can usually log in using the default username of &amp;quot;&#039;&#039;&#039;admin&#039;&#039;&#039;&amp;quot;, with password &amp;quot;&#039;&#039;&#039;admin&#039;&#039;&#039;&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
Once successful, you will be returned to the home page of your new site! Note the administration links that appear down the left hand side of the page (these items also appear on a separate Admin page) - these items are only visible to you because you are logged in as the admin user. All your further administration of Moodle can now be done using this menu, such as:&lt;br /&gt;
&lt;br /&gt;
* creating and deleting courses&lt;br /&gt;
* creating and editing user accounts&lt;br /&gt;
* administering teacher accounts&lt;br /&gt;
* changing site-wide settings like themes etc&lt;br /&gt;
&lt;br /&gt;
But you are not done installing yet! There is one very important thing still to do (see the next section on cron).&lt;br /&gt;
&lt;br /&gt;
== Set up cron ==&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[Cron|Cron instructions]].&lt;br /&gt;
&lt;br /&gt;
== Set up backups ==&lt;br /&gt;
&lt;br /&gt;
Please refer to the [[Backup | Backup instructions]].&lt;br /&gt;
&lt;br /&gt;
== Create a new course ==&lt;br /&gt;
&lt;br /&gt;
Now that Moodle is running properly, you can try creating a new course to play with.&lt;br /&gt;
&lt;br /&gt;
Select &amp;quot;Create a new course&amp;quot; from the Admin page (or the admin links on the home page).&lt;br /&gt;
&lt;br /&gt;
Fill out the form, paying special attention to the course format. You don&#039;t have to worry about the details too much at this stage, as everything can be changed later by the teacher. Note that the yellow help icons are everywhere to provide contextual help on any aspect.&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Save changes&amp;quot;, and you will be taken to a new form where you can assign teachers to the course. You can only add existing user accounts from this form - if you want to create a new teacher account then either ask the teacher to create one for themselves (see the login page), or create one for them using the &amp;quot;Add a new user&amp;quot; on the Admin page.&lt;br /&gt;
&lt;br /&gt;
Once done, the course is ready to customize, and is accessible via the &amp;quot;Courses&amp;quot; link on the home page.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Installation FAQ]]&lt;br /&gt;
*[[Complete install packages]] might be an easier first time installs on some systems&lt;br /&gt;
* [[Installing Apache, MySQL and PHP]] - Open source programs that can run Moodle on the web or on a desktop&lt;br /&gt;
* [[Upgrading Moodle]]&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=42688 Selecting a web host for Moodle] forum discussion&lt;br /&gt;
* [[masquerading|Masquerading]] - Running Moodle behind a masquerading/NAT firewall&lt;br /&gt;
&lt;br /&gt;
[[Category:Core]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
[[cs:Instalace]]&lt;br /&gt;
[[de:Installieren von Moodle]]&lt;br /&gt;
[[es:Instalación de moodle]]&lt;br /&gt;
[[fr:Installation de Moodle]]&lt;br /&gt;
[[ja:Moodleのインストール]]&lt;br /&gt;
[[nl:Installatiegids]]&lt;br /&gt;
[[ru:Установка Moodle]]&lt;br /&gt;
[[zh:安装Moodlezh:]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21191</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21191"/>
		<updated>2007-03-07T04:26:34Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install MySQL (skip Postgresql) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (skip Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server php5-mysqli&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
&amp;gt; CREATE DATABASE moodle;&lt;br /&gt;
&amp;gt; GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
&amp;gt; FLUSH PRIVILEGES;&lt;br /&gt;
&amp;gt; QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (skip MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1 php5-pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a &#039;&#039;NewMoodleDatabasePassword here&#039;&#039;, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit the file &#039;/etc/postgresql/8.1/main/pg_hba.conf&#039; and on line 79 change the word &#039;&#039;sameuser&#039;&#039; to &#039;&#039;md5&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/postgresql/8.1/main/pg_hba.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Arguments_in_favour_of_PostgreSQL&amp;diff=21190</id>
		<title>Arguments in favour of PostgreSQL</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Arguments_in_favour_of_PostgreSQL&amp;diff=21190"/>
		<updated>2007-03-07T04:13:16Z</updated>

		<summary type="html">&lt;p&gt;Mstous: added link to postgresql install on Ubuntu (Debian)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Martin Langhoff argues &#039;&#039;&#039;in favour of PostgreSQL&#039;&#039;&#039; (source: [http://moodle.org/mod/forum/discuss.php?d=24831#121862 Moodle over webct and LNLS at Athabasca University?] forum posting)&lt;br /&gt;
&lt;br /&gt;
There are several reasons to go with Postgres, I&#039;ll try to make a brief outline. We run a variety of RDBMSs at Catalyst, and have a lot of in-house experience with them: Oracle, Postgres, MySQL and Progress, plus a few others. We also have experience with replicated databases, clustering and other tricks -- which we use for the backend of the .nz root domain servers as well as a few other mission-critical systems.&lt;br /&gt;
&lt;br /&gt;
On the performance side, Postgres requires a bit more up-front configuration than MySQL. A well tuned Postgres is pretty close on SELECT performance to MySQL with small databases. With large tables MySQL has some bad performance problems, and Postgres performs much better.&lt;br /&gt;
&lt;br /&gt;
Write performance is also an issue with MySQL -- with a lot of traffic, it has serious problems with concurrent writes. Under heavy load, Postgres performs much better.&lt;br /&gt;
&lt;br /&gt;
But to tell you the truth, the real reason for choosing Postgres is reliability. We maintain a lot of databases, and Postgres is rock-solid reliable and has a focus on ACID-correctness: when it returns from a commit, the data is safely on disk and won&#039;t be lost -- barring actual disk problems, which we offset using RAID-1.&lt;br /&gt;
&lt;br /&gt;
No matter how hard we try, MySQL databases with a lot of usage have recurring index corruption issues. If you look at the startup scripts for MySQL on most Linux distributions, they check for data corruption on every startup -- this is to mask the fact that it is a frequent occurrence.&lt;br /&gt;
&lt;br /&gt;
And while this is passable with small installations where the data isn&#039;t mission critical, you have to consider how much you can trust such approch. And with large datasets, runing isamchk/myisamchk can take hours -- we cannot afford that.&lt;br /&gt;
&lt;br /&gt;
The clustering solution for MySQL is being touted a lot, and I think it is a red herring. My main concern about is that it writes &amp;quot;asynchronously&amp;quot; -- that is, there is no guarantee that your data is on-disk safely. It&#039;ll get to the disk sometime. It&#039;ll get to the slaves... sometime. Hmmm.&lt;br /&gt;
&lt;br /&gt;
Given that the MySQL cluster uses async writes, splitting read/writes between the master and the slaves breaks down in cases where we write some data, and read it back in immediately (or soon after). And this does happen in quite a few places.&lt;br /&gt;
&lt;br /&gt;
And you also have to consider the performance boost of using async writes: if you tell a standalone Postgres or MySQL to use async writes, it&#039;ll run scale much better (should be able to handle up to 3-4 times more simultaneous writes). Once you do that, the performance advantage of the MySQL cluster mostly vanishes. It still has semi-hot takeover in case the master goes down, but Postgres can do that using Slony, and with better guarantess of consistency of the data in the slave.&lt;br /&gt;
&lt;br /&gt;
In a nutshell, MySQL isn&#039;t normally very solid when it comes to ensure my data is safely stored on-the-disk, even if it theoretically guarantees that it&#039;s been saved. And MySQL Cluster says up-front that there isn&#039;t a guarantee any more. Riiiiiight wink&lt;br /&gt;
&lt;br /&gt;
Michael is talking about having UPSs. We have a car-sized UPS and a container-sized on-site generator that auto-starts. And yet, I wouldn&#039;t depend on that for my DB consistency on a large Installation. So many things other than power can (and do) go amiss. If a process has a problem storing the data, the right thing is to tell that back to the user. With async writes, you end up with a queue of data that hasn&#039;t been stored yet, but you already told the user it was.&lt;br /&gt;
&lt;br /&gt;
That&#039;s not what a database is supposed to do.&lt;br /&gt;
&lt;br /&gt;
I am currently exploring some techniques similar to those being used in livejournal and slashdot. We should be able to increase Moodle scalability by cutting down on DB load by about 50%. This is happening slowly in the gaps between more urgent projects. Feel free to ping Richard or me if you&#039;re interested in that track.&lt;br /&gt;
&lt;br /&gt;
===See Also===&lt;br /&gt;
* [https://docs.moodle.org/en/Step-by-step_Install_Guide_for_Ubuntu#Install_Postgresql_.28skip_MySQL.29 Installing Postgres on Ubuntu(Debian)]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Performance]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21189</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21189"/>
		<updated>2007-03-07T04:08:40Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install Postgresql (or MySQL) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (skip Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server php5-mysqli&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (skip MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1 php5-pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a &#039;&#039;NewMoodleDatabasePassword here&#039;&#039;, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit the file &#039;/etc/postgresql/8.1/main/pg_hba.conf&#039; and on line 79 change the word &#039;&#039;sameuser&#039;&#039; to &#039;&#039;md5&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/postgresql/8.1/main/pg_hba.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21188</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21188"/>
		<updated>2007-03-07T04:08:17Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install MySQL (or Postgresql) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (skip Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server php5-mysqli&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1 php5-pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a &#039;&#039;NewMoodleDatabasePassword here&#039;&#039;, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit the file &#039;/etc/postgresql/8.1/main/pg_hba.conf&#039; and on line 79 change the word &#039;&#039;sameuser&#039;&#039; to &#039;&#039;md5&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/postgresql/8.1/main/pg_hba.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21187</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21187"/>
		<updated>2007-03-07T04:07:36Z</updated>

		<summary type="html">&lt;p&gt;Mstous: removed redundant info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server php5-mysqli&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1 php5-pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a &#039;&#039;NewMoodleDatabasePassword here&#039;&#039;, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit the file &#039;/etc/postgresql/8.1/main/pg_hba.conf&#039; and on line 79 change the word &#039;&#039;sameuser&#039;&#039; to &#039;&#039;md5&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/postgresql/8.1/main/pg_hba.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21186</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21186"/>
		<updated>2007-03-07T04:06:24Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install Postgresql (or MySQL) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server php5-mysqli&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1 php5-pgsql&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a &#039;&#039;NewMoodleDatabasePassword here&#039;&#039;, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit the file &#039;/etc/postgresql/8.1/main/pg_hba.conf&#039; and on line 79 change the word &#039;&#039;sameuser&#039;&#039; to &#039;&#039;md5&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/postgresql/8.1/main/pg_hba.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd (php5-mysqli or php5-pgsql)&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21185</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21185"/>
		<updated>2007-03-07T04:05:03Z</updated>

		<summary type="html">&lt;p&gt;Mstous: corrected the correction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server php5-mysqli&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a &#039;&#039;NewMoodleDatabasePassword here&#039;&#039;, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit the file &#039;/etc/postgresql/8.1/main/pg_hba.conf&#039; and on line 79 change the word &#039;&#039;sameuser&#039;&#039; to &#039;&#039;md5&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nano /etc/postgresql/8.1/main/pg_hba.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd (php5-mysqli or php5-pgsql)&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21184</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21184"/>
		<updated>2007-03-07T04:04:21Z</updated>

		<summary type="html">&lt;p&gt;Mstous: condence the MySQL statements&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Install the PHP module for MySQL&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install php5-mysqli&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a &#039;&#039;NewMoodleDatabasePassword here&#039;&#039;, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit the file &#039;/etc/postgresql/8.1/main/pg_hba.conf&#039; and on line 79 change the word &#039;&#039;sameuser&#039;&#039; to &#039;&#039;md5&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nano /etc/postgresql/8.1/main/pg_hba.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd (php5-mysqli or php5-pgsql)&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21183</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21183"/>
		<updated>2007-03-07T04:02:02Z</updated>

		<summary type="html">&lt;p&gt;Mstous: added correct local security setting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a &#039;&#039;NewMoodleDatabasePassword here&#039;&#039;, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit the file &#039;/etc/postgresql/8.1/main/pg_hba.conf&#039; and on line 79 change the word &#039;&#039;sameuser&#039;&#039; to &#039;&#039;md5&#039;&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
nano /etc/postgresql/8.1/main/pg_hba.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd (php5-mysqli or php5-pgsql)&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21182</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21182"/>
		<updated>2007-03-07T03:26:11Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install Apache */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a NewMoodleDatabasePassword here, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd (php5-mysqli or php5-pgsql)&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21181</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21181"/>
		<updated>2007-03-07T03:25:17Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install Postgresql (or MySQL) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database user &#039;moodle&#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createuser -D -A -P moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Enter in a NewMoodleDatabasePassword here, then answer &#039;N&#039; to the question.&lt;br /&gt;
&lt;br /&gt;
We now need to create the database &#039;moodle&#039; for the user &#039;moodle&#039;. You&#039;ll need to enter the password that you just created.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres createdb -E utf8 -O moodle moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Let&#039;s now secure the postgresql database with an admin password. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -u postgres psql template1&lt;br /&gt;
# ALTER USER postgres WITH PASSWORD &#039;NewAdminDatabasePassword&#039;;&lt;br /&gt;
# \q&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Restart the database so everything is fine.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/postgresql-8.1 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21180</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21180"/>
		<updated>2007-03-07T01:59:07Z</updated>

		<summary type="html">&lt;p&gt;Mstous: corrected command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install postgresql-8.1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21179</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21179"/>
		<updated>2007-03-07T01:58:00Z</updated>

		<summary type="html">&lt;p&gt;Mstous: added beginning install&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press Y to continue the install.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21178</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21178"/>
		<updated>2007-03-07T01:56:45Z</updated>

		<summary type="html">&lt;p&gt;Mstous: moved MySQL commands to MySQL section and added postgress section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL (or Postgresql) ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Postgresql (or MySQL) ===&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21177</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=21177"/>
		<updated>2007-03-07T01:54:12Z</updated>

		<summary type="html">&lt;p&gt;Mstous: moved MySQL commands to MySQL section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Cron&amp;diff=21176</id>
		<title>Cron</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Cron&amp;diff=21176"/>
		<updated>2007-03-06T20:28:01Z</updated>

		<summary type="html">&lt;p&gt;Mstous: added beginners option for crontab using nano&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Some of Moodle&#039;s modules require continual checks to perform tasks. For example, Moodle needs to check the discussion forums so it can mail out copies of posts to people who have subscribed.&lt;br /&gt;
&lt;br /&gt;
The script that does all this is located in the admin directory, and is called cron.php. However, it can not run itself, so you need to set up a mechanism where this script is run regularly (eg every five or ten minutes). This provides a &amp;quot;heartbeat&amp;quot; so that the script can perform functions at periods defined by each module. This kind of regular mechanism is known as a &#039;&#039;&#039;cron service&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The cron.php script looks through all the module directories for cron.php files and runs them.  These files can contain cleanup functions, email functions or anything that needs to be run on a regular basis. For example, cron will trigger the system to create the backups of courses at the time specified in the administration settings. It also triggers any messaging module or forum email notifications, but not all functions are called each time the cron runs. Some functions, such as unenrolling students who have not logged in or deleting old copies of log files, are only run occasionally. The cron.php file has a section which will randomly call these core tasks approximately 1 in 5 times the cron runs.&lt;br /&gt;
&lt;br /&gt;
Note that the machine performing the cron &#039;&#039;&#039;does not need to be the same machine that is running Moodle&#039;&#039;&#039;. For example, if you have a limited web hosting service that does not have a cron service, then you might choose to run cron on another server or on your home computer. All that matters is that the cron.php file is called regularly.&lt;br /&gt;
&lt;br /&gt;
The load of this script is not very high, so 5 minutes is usually reasonable, but if you&#039;re worried about it you can reduce the time period to something like 15 minutes or even 30 minutes. It&#039;s best not to make the time period too long, as delaying mail-outs can slow down activity within the course. Remember that mail-outs also wait for the editing time to expire before being queued for sending.&lt;br /&gt;
&lt;br /&gt;
First, test that the script works by running it directly from your browser: &#039;&#039;&amp;lt;nowiki&amp;gt;http://example.com/moodle/admin/cron.php&amp;lt;/nowiki&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If cron is called from the command line by any user logged in to your Moodle it will create a temporary admin environment in order to run and then log the user out. You can disable command line running of cron by disabling the appropriate section in the cron.php file.&lt;br /&gt;
&lt;br /&gt;
Now, you need to set up some of way of running the script automatically and regularly.&lt;br /&gt;
&lt;br /&gt;
==On Windows systems==&lt;br /&gt;
&lt;br /&gt;
There are two different ways for setting-up Moodle cron.php on Windows systems:&lt;br /&gt;
&lt;br /&gt;
*Use the &#039;&#039;&#039;Moodle Cron package&#039;&#039;&#039;. The simplest way is to use this little package [http://moodle.org/download/modules/moodle-cron-for-windows.zip moodle-cron-for-windows.zip] which makes this whole thing very easy by installing a small Windows service. Run it and forget about it! :-)&lt;br /&gt;
&lt;br /&gt;
*Use a &#039;&#039;&#039;Scheduled Task&#039;&#039;&#039;. On the other hand, if you are having trouble with moodle-cron-for-windows package, you can use wget for windows or php from the command line and setup a scheduled task. Just follow these steps:&lt;br /&gt;
&lt;br /&gt;
# You can either use the &#039;&#039;&#039;php.exe (command line binary)&#039;&#039;&#039; which is installed in your php folder (e.g. c:\php), or you can use &#039;&#039;&#039;wget&#039;&#039;&#039;. Note that you will get better performance by using the php.exe option. If you want to use wget, download a compiled version of wget for windows from Heiko Herold&#039;s wget for windows page (http://xoomer.virgilio.it/hherold/) or Bart Puype&#039;s wget for windows page (http://users.ugent.be/~bpuype/wget/). If you use Heiko Herold&#039;s package, copy all of the .DLL files to your C:\Windows\system32 directory. Copy the wget.exe file to c:\windows (this makes sure wget is always in the search path).&lt;br /&gt;
# Setup a &#039;&#039;&#039;Scheduled Task&#039;&#039;&#039;. &lt;br /&gt;
## Go to Start &amp;gt;&amp;gt; Control Panel &amp;gt;&amp;gt; Scheduled Tasks &amp;gt;&amp;gt; Add Scheduled Task.&lt;br /&gt;
## Click &amp;quot;Next&amp;quot; to start the wizard:&lt;br /&gt;
## Click in the &amp;quot;Browse...&amp;quot; button and browse to c:\php\php.exe or c:\windows\wget.exe and click &amp;quot;Open&amp;quot;&lt;br /&gt;
## Type &amp;quot;Moodle Cron&amp;quot; as the name of the task and select &amp;quot;Daily&amp;quot; as the schedule. Click &amp;quot;Next&amp;quot;.&lt;br /&gt;
## Select &amp;quot;12:00 AM&amp;quot; as the start time, perform the task &amp;quot;Every Day&amp;quot; and choose today&#039;s date as the starting date. Click &amp;quot;Next&amp;quot;.&lt;br /&gt;
## Enter the username and password of the user the task will run under (it doesn&#039;t have to be a priviledged account at all). Make sure you type the password correctly. Click &amp;quot;Next&amp;quot;.&lt;br /&gt;
## Mark the checkbox titled &amp;quot;Open advanced properties for this task when I click Finish&amp;quot; and click &amp;quot;Finish&amp;quot;.&lt;br /&gt;
## In the new dialog box, type the following in the &amp;quot;Run:&amp;quot; text box: &amp;lt;pre&amp;gt;c:\windows\wget.exe -q -O NUL http://my.moodle.site/moodle/admin/cron.php&amp;lt;/pre&amp;gt; or &amp;lt;pre&amp;gt;c:\php\php.exe -f c:\moodle\admin\cron.php&amp;lt;/pre&amp;gt; Replace &amp;quot;c:\moodle&amp;quot; with the path to your moodle directory or &amp;quot;my.moode.site&amp;quot; with the name of your site.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
## Click on the &amp;quot;Schedule&amp;quot; tab and there in the &amp;quot;Advanced...&amp;quot; button.&lt;br /&gt;
## Mark the &amp;quot;Repeat task&amp;quot; checkbox and set &amp;quot;Every:&amp;quot; to 5 minutes, and set &amp;quot;Until:&amp;quot; to &amp;quot;Duration&amp;quot; and type &amp;quot;23&amp;quot; hours and &amp;quot;59&amp;quot; minutes.&lt;br /&gt;
## Click &amp;quot;OK&amp;quot; and you are done.&lt;br /&gt;
# &#039;&#039;&#039;Test your scheduled task&#039;&#039;&#039;. You can test that your scheduled task can run successfully by clicking it with the right button and chosing &amp;quot;Run&amp;quot;. If everything is correctly setup, you will briefly see a DOS command window while wget/php executes and fetches the cron page and then it disappears. If you refresh the scheduled tasks folder, you will see the &#039;&#039;Last Run Time column&#039;&#039; (in detailed folder view) reflects the current time, and that the Last Result column displays &amp;quot;0x0&amp;quot; (everything went OK). If either of these is different, then you should recheck your setup.&lt;br /&gt;
&lt;br /&gt;
==On web hosting services==&lt;br /&gt;
&lt;br /&gt;
Your web-based control panel may have a web page that allows you to set up this cron process. &lt;br /&gt;
&lt;br /&gt;
If you are using CPanel, login then look for the heading &amp;quot;Advanced&amp;quot; on the page. Click on Cron Jobs -&amp;gt; Advanced (unix style). Enter the following for the cron to run every 30 minutes.&lt;br /&gt;
&lt;br /&gt;
 Email address for output: emailaddress@mydomain.con&lt;br /&gt;
 Minute:*/30&lt;br /&gt;
 Hour:*&lt;br /&gt;
 Day:*&lt;br /&gt;
 Month:*&lt;br /&gt;
 Weekday:* &lt;br /&gt;
 Command: wget -q -O /dev/null http://www.mydomain.com/moodle/admin/cron.php&lt;br /&gt;
&lt;br /&gt;
Click Commit Changes. Check your email for the output. An example is shown below:&lt;br /&gt;
&lt;br /&gt;
[[Image:Cpanel-cron-setup.JPG]]&lt;br /&gt;
&lt;br /&gt;
For other systems, look for a button called &amp;quot;Cron jobs&amp;quot;. In there you can put the same sort of Unix commands as listed below.&lt;br /&gt;
&lt;br /&gt;
==Using the command line on Unix==&lt;br /&gt;
&lt;br /&gt;
There are different command line programs you can use to call the page from the command line. Not all of them may be available on a given server.&lt;br /&gt;
&lt;br /&gt;
For example, you can use a Unix utility like &#039;wget&#039;:&lt;br /&gt;
&lt;br /&gt;
 wget -q -O /dev/null &amp;lt;nowiki&amp;gt;http://example.com/moodle/admin/cron.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note in this example that the output is thrown away (to /dev/null).&lt;br /&gt;
&lt;br /&gt;
A number of users of Moodle have found that &#039;wget&#039; sometimes fails. Especially if you have trouble with email digests not being sent on a daily basis to all users, an alternative command that solves the problem is:&lt;br /&gt;
&lt;br /&gt;
 php &amp;lt;nowiki&amp;gt;http://example.com/moodle/admin/cron.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The same thing using lynx:&lt;br /&gt;
&lt;br /&gt;
 lynx -dump &amp;lt;nowiki&amp;gt;http://example.com/moodle/admin/cron.php&amp;lt;/nowiki&amp;gt; &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
Note in this example that the output is thrown away (to /dev/null).&lt;br /&gt;
&lt;br /&gt;
Alternatively you could use a standalone version of PHP, compiled to be run on the command line. The advantage with doing this is that your web server logs aren&#039;t filled with constant requests to cron.php. The disadvantage is that you need to have access to a command-line version of php.&lt;br /&gt;
&lt;br /&gt;
 /opt/bin/php /web/moodle/admin/cron.php&lt;br /&gt;
&lt;br /&gt;
==Using the crontab program on Unix==&lt;br /&gt;
&lt;br /&gt;
All that Cpanel does is provide a web interface to a Unix utility known as crontab. If you have a command line, you can set up crontab yourself using the command:&lt;br /&gt;
&lt;br /&gt;
 crontab -e&lt;br /&gt;
&lt;br /&gt;
and then adding one of the above commands like:&lt;br /&gt;
&lt;br /&gt;
 */30 * * * * wget -q -O /dev/null &amp;lt;nowiki&amp;gt;http://example.com/moodle/admin/cron.php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first five entries are the times to run values, followed by the command to run. The asterisk is a wildard, indicating any time. The above example means run the command &#039;&#039;wget -q -O /dev/null...&#039;&#039; every 30 minutes (*/30), every hour (*), every day of the month (*), every month (*), every day of the week (*).  &lt;br /&gt;
&lt;br /&gt;
* [http://linuxweblog.com/node/24 A basic crontab tutorial] &lt;br /&gt;
* [http://www.freebsd.org/cgi/man.cgi?query=crontab&amp;amp;apropos=0&amp;amp;sektion=5&amp;amp;manpath=FreeBSD+6.0-RELEASE+and+Ports&amp;amp;format=html Online version of the man page] &lt;br /&gt;
&lt;br /&gt;
For &#039;&#039;&#039;beginners&#039;&#039;&#039;, &amp;quot;EDITOR=nano crontab -e&amp;quot; will allow you to edit the crontab using the [http://www.nano-editor.org/dist/v1.2/faq.html nano] editor. Ubuntu defaults to using the nano editor.&lt;br /&gt;
&lt;br /&gt;
Usually, the &amp;quot;crontab -e&amp;quot; command will put you into the &#039;vi&#039; editor. You enter &amp;quot;insert mode&amp;quot; by pressing &amp;quot;i&amp;quot;, then type in the line as above, then exit insert mode by pressing ESC. You save and exit by typing &amp;quot;:wq&amp;quot;, or quit without saving using &amp;quot;:q!&amp;quot; (without the quotes). Here is an [http://www.unix-manuals.com/tutorials/vi/vi-in-10-1.html intro] to the &#039;vi&#039; editor.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=41827 Cron - can someone give me a quick confirmation of function?] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Core]]&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
&lt;br /&gt;
[[es:Cron]]&lt;br /&gt;
[[fr:Cron]]&lt;br /&gt;
[[nl:Cron]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=TMPFS&amp;diff=21172</id>
		<title>TMPFS</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=TMPFS&amp;diff=21172"/>
		<updated>2007-03-06T16:29:32Z</updated>

		<summary type="html">&lt;p&gt;Mstous: Copy of info from forum discussion&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== On Solaris: ==&lt;br /&gt;
&lt;br /&gt;
/tmp is mounted swapfs and is it correct to put the eaccelerator files into /tmp/eaccelerator. You will have to remake the directory after a reboot.&lt;br /&gt;
&lt;br /&gt;
== On Ubuntu (Linux): ==&lt;br /&gt;
&lt;br /&gt;
In linux tmpfs can be used in the same way as Solaris, either on /tmp or elsewhere.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /var/tmp/eaccelerator&lt;br /&gt;
sudo chown www-data.www-data /var/tmp/eaccelerator&lt;br /&gt;
sudo mount -t tmpfs tmpfs /var/tmp/eaccelerator&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now put it in your /etc/fstab:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tmpfs /var/tmp/eaccelerator tmpfs defaults 0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In your php.ini, change this line to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
eaccelerator.cache_dir=&amp;quot;/var/tmp/eaccelerator&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And restart Apache:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You now don&#039;t have to recreate the /var/tmp/eaccelerator directory after the reboot, and the tmpfs will automount.&lt;br /&gt;
&lt;br /&gt;
If you are VERY clever, then you might copy the cached files off of the tmpfs when apache stops and copy the cached files back on when apache starts.&lt;br /&gt;
&lt;br /&gt;
== See Also: ==&lt;br /&gt;
&lt;br /&gt;
* [http://www-128.ibm.com/developerworks/library/l-fs3.html http://www-128.ibm.com/developerworks/library/l-fs3.html]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Performance&amp;diff=21169</id>
		<title>Performance</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Performance&amp;diff=21169"/>
		<updated>2007-03-06T16:18:52Z</updated>

		<summary type="html">&lt;p&gt;Mstous: Adding tmpfs page to documentation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Moodle can be made to perform very well, at small usage levels or scaling up to many thousands of users. The factors involved in performance are basically the same as for any PHP-based database-driven system. When trying to optimize your server, try to focus on the factor which will make the most difference to the user. For example, if you have relatively more users browsing than accessing the database, look to improve the webserver performance.&lt;br /&gt;
&lt;br /&gt;
==Obtain a baseline benchmark==&lt;br /&gt;
&lt;br /&gt;
Before attempting any optimization, you should obtain a baseline benchmark of the component of the system you are trying to improve. For Linux try [http://lbs.sourceforge.net/ LBS] and for Windows use the Performance Monitor. Once you have quantitative data about how your system is performing currently, you&#039;ll be able to determine if the change you have made as has any real impact.&lt;br /&gt;
&lt;br /&gt;
The overall aim of adjustments to improve performance is to use RAM (cacheing) and to reduce disk-based activity. It is especially important to try to eliminate swap file usage as much as you can. If your system starts swapping, this is a sign that you need more RAM. &lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;optimization order preference&#039;&#039;&#039; is usually: primary storage (more RAM), secondary storage (faster hard disks/improved hard disk configuration), processor (more and faster).&lt;br /&gt;
&lt;br /&gt;
==Scalability==&lt;br /&gt;
&lt;br /&gt;
Moodle&#039;s design (with clear separation of application layers) allows for strongly scalable setups. (Please check the list of [[Large installations|large Moodle installations]].)&lt;br /&gt;
&lt;br /&gt;
Large sites usually separate the web server and database onto separate servers, although for smaller installations this is typically not necessary.&lt;br /&gt;
&lt;br /&gt;
It is possible to load-balance a Moodle installation, for example by using more than one webserver. The separate webservers should query the same database and refer to the same filestore area, but otherwise the separation of the application layers is complete enough to make this kind of clustering feasible. Similarly, the database could be a cluster of servers (e.g. a MySQL cluster), but this is not an easy task and you should seek expert support, e.g. from a Moodle Partner.&lt;br /&gt;
&lt;br /&gt;
==Hardware configuration==&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039;: The fastest and most effective change that you can make to improve performance is to &#039;&#039;&#039;increase the amount of RAM on your web server&#039;&#039;&#039; - get as much as possible (eg 4GB). Increasing primary memory will reduce the need for processes to swap to disk and will enable your server to handle more users.&lt;br /&gt;
* Better performance is gained by obtaining the best &#039;&#039;&#039;processor capability&#039;&#039;&#039; you can, i.e. dual or dual core processors. A modern BIOS should allow you to enable hyperthreading, but check if this makes a difference to the overall performance of the processors by using a [http://en.wikipedia.org/wiki/Super_PI CPU benchmarking tool].&lt;br /&gt;
* If you can afford them, use &#039;&#039;&#039;SCSI hard disks&#039;&#039;&#039; instead of SATA drives. SATA drives will increase your system&#039;s CPU utilization, whereas SCSI drives have their own integrated processors and come into their own when you have multiple drives. If you must have SATA drives, check that your motherboard and the drives themselves support NCQ (Native Command Queuing).&lt;br /&gt;
* Purchase hard disks with a &#039;&#039;&#039;low seek time&#039;&#039;&#039;. This will improve the overall speed of your system, especially when accessing Moodle&#039;s reports.&lt;br /&gt;
* Size your &#039;&#039;&#039;swap file&#039;&#039;&#039; correctly. The general advice is to set it to 4 x physical RAM.&lt;br /&gt;
* Use a &#039;&#039;&#039;RAID disk system&#039;&#039;&#039;. Although there are many different RAID configurations you can create, the following generally works best:&lt;br /&gt;
** install a hardware RAID controller (if you can)&lt;br /&gt;
** the operating system and swap drive on one set of disks configured as RAID-1.&lt;br /&gt;
** Moodle, Web server and Database server on another set of disks configured as RAID-5.&lt;br /&gt;
* Use &#039;&#039;&#039;gigabit ethernet&#039;&#039;&#039; for improved latency and throughput. This is especially important when you have your webserver and database server separated out on different hosts.&lt;br /&gt;
* Check the settings on your &#039;&#039;&#039;network card&#039;&#039;&#039;. You may get an improvement in performance by increasing the use of buffers and transmit/receive descriptors (balance this with processor and memory overheads) and off-loading TCP checksum calculation onto the card instead of the OS.&lt;br /&gt;
&lt;br /&gt;
==Operating System==&lt;br /&gt;
* You can use [http://en.wikipedia.org/wiki/Linux Linux](recommended), Unix-based, Windows or Mac OS X for the server &#039;&#039;&#039;operating system&#039;&#039;&#039;. *nix operating systems generally require less memory than Mac OS X or Windows servers for doing the same task as the server is configured with just a shell interface. Additionally Linux does not have licensing fees attached, but can have a big learning curve if you&#039;re used to another operating system. If you have a large number of processors running SMP, you may also want to consider using a highly tuned OS such as [http://en.wikipedia.org/wiki/Solaris_Operating_Environment Solaris].&lt;br /&gt;
* Check your own OS and &#039;&#039;&#039;vendor specific instructions&#039;&#039;&#039; for optimization steps.&lt;br /&gt;
** For Linux look at the [http://linuxperf.sourceforge.net/ Linux Performance Team] site. &lt;br /&gt;
** For Linux investigate the hdparm command, e.g. hdparm -m16 -d1 can be used to enable read/write on multiple sectors and DMA. Mount disks with the async and noatime options.&lt;br /&gt;
** For Windows set the sever to be optimized for network applications (Control Panel, Network Connections, LAN connection, Properties, File &amp;amp; Printer Sharing for Microsoft Networks, Properties, Optimization). You can also search the [http://technet.microsoft.com/ Microsoft TechNet site] for optimization documents.&lt;br /&gt;
&lt;br /&gt;
==Web server performance==&lt;br /&gt;
* PHP performance&lt;br /&gt;
** You are strongly recommended to use a &#039;&#039;&#039;PHP accelerator&#039;&#039;&#039; to ease CPU load, such as [http://pecl.php.net/apc APC] (recommended), [http://www.php-accelerator.co.uk/ PHPA], [http://trac.lighttpd.net/xcache/ Xcache] or [http://eaccelerator.net/ eAccelerator]. (Take care to choose a PHP accelerator that is known to work well with your version of PHP and note that Turck MMCache is [http://turckmmcache.exeprod.com/TheManifestoEnglish no longer maintained] and can cause failures with PHP 5). Put the cached PHP pages on a [[TMPFS]] filesystem.&lt;br /&gt;
** Performance of PHP is better when installed as an &#039;&#039;&#039;Apache/IIS ISAPI module&#039;&#039;&#039; (rather than a CGI).&lt;br /&gt;
** Also check the &#039;&#039;&#039;memory_limit&#039;&#039;&#039; in php.ini, reduce it to 16M for Moodle version earlier than 1.7 ([http://moodle.org/mod/forum/discuss.php?d=39656 See this forum discussion]). For Moodle 1.7 or later, it is recommended that the value of memory_limit should be 32M.&lt;br /&gt;
* Apache performance&lt;br /&gt;
** Consider reducing the &#039;&#039;&#039;number of modules&#039;&#039;&#039; that Apache loads in the httpd.conf file to the minumum necessary to reduce the memory needed. Also, use the latest version of Apache 2, which reduces memory usage further.&lt;br /&gt;
** For Unix/Linux systems, consider lowering &#039;&#039;&#039;MaxRequestsPerChild&#039;&#039;&#039; in httpd.conf to as low as 20-30 (if you set it any lower the overhead of forking begins to outweigh the benefits). &lt;br /&gt;
** For a heavily loaded server, consider lowering the &#039;&#039;&#039;KeepAliveTimeout&#039;&#039;&#039; to between 2 and 5. The default is 15 (seconds) - the higher the value the more server processes will be kept waiting for possibly idle connections.&lt;br /&gt;
** Alternatively, you can increase web server performance by using the &#039;&#039;&#039;light-weight webserver&#039;&#039;&#039; [http://www.lighttpd.org/ lighttpd] in combination with PHP in fastCGI-mode instead of Apache. Lighttpd has a lower memory consumption than Apache. One single apache process requires more RAM than the whole lighttpd with all of its fastCGI-processes together. Note that Lighttpd is relatively difficult to configure and administration takes a more time.&lt;br /&gt;
* IIS performance - all alter this location in the registry:&lt;br /&gt;
 HKLM\SYSTEM\CurrentControlSet\Services\Inetinfo\Parameters\&lt;br /&gt;
:* The equivalent to KeepAliveTimeout is &#039;&#039;&#039;ListenBackLog&#039;&#039;&#039; (IIS - registry location is HKLM\ SYSTEM\ CurrentControlSet\ Services\ Inetinfo\ Parameters). Set this to between 2 to 5.&lt;br /&gt;
:*Change the &#039;&#039;&#039;MemCacheSize&#039;&#039;&#039; value to adjust the amount of memory (Mb) that IIS will use for its file cache (50% of available memory by default).&lt;br /&gt;
:*Change the &#039;&#039;&#039;MaxCachedFileSize&#039;&#039;&#039; to adjust the maximum size of a file cached in the file cache in bytes. Default is 262,144 (256K).&lt;br /&gt;
:*Create a new DWORD called &#039;&#039;&#039;ObjectCacheTTL&#039;&#039;&#039; to change the length of time (in milliseconds) that objects in the cache are held in memory. Default is 30,000 milliseconds (30 seconds).&lt;br /&gt;
&lt;br /&gt;
==Database performance==&lt;br /&gt;
&lt;br /&gt;
Moodle contains a script which will display some key database performance statistics from the [http://phplens.com/lens/adodb/docs-perf.htm ADOdb performance monitor]. Run the script in your browser as in the following example:&lt;br /&gt;
&lt;br /&gt;
 http://www.mymoodle.com/admin/dbperformance.php&lt;br /&gt;
&lt;br /&gt;
Use the data displayed as a guide to tune and improve the performance of your database server.&lt;br /&gt;
&lt;br /&gt;
===MySQL performance===&lt;br /&gt;
&lt;br /&gt;
The following are MySQL specific settings which can be adjusted for better performance in your my.cnf (my.ini in Windows). To see the current values use these commands&lt;br /&gt;
 SHOW STATUS;&lt;br /&gt;
 SHOW VARIABLES; &lt;br /&gt;
&#039;&#039;&#039;Important&#039;&#039;&#039;: You must make backups of your database before attempting to change any MySQL server configuration. After any change to the my.cnf, restart mysqld.&lt;br /&gt;
* Enable the &#039;&#039;&#039;query cache&#039;&#039;&#039; with query_cache_type = 1. For most Moodle installs, set the query_cache_size to 36M and query_cache_min_res_unit to 2K. The query cache will improve performance if you are doing few updates on the database. &lt;br /&gt;
* Set the &#039;&#039;&#039;table cache&#039;&#039;&#039; correctly. For Moodle 1.6 set table_cache = 159, and for Moodle 1.7 set table_cache = 170. Note that this figure will change depending on the number of modules and plugins you have installed. Find the number for your server by executing the mysql statement below. Look at the number of rows printed and set table_cache to this value.&lt;br /&gt;
 mysql&amp;gt;SELECT table_name FROM information_schema.tables WHERE table_schema=&#039;yourmoodledbname&#039;;&lt;br /&gt;
* Set the &#039;&#039;&#039;thread cache&#039;&#039;&#039; correctly. Adjust the value so that your thread cache utilization is as close to 100% as possible by this formula:&lt;br /&gt;
 thread cache utilization (%) = (threads_created / connections) * 100&lt;br /&gt;
* The &#039;&#039;&#039;key buffer&#039;&#039;&#039; can improve the access speed to Moodle&#039;s SELECT queries. The correct size depends on the size of the index files (.myi) and in Moodle 1.6 or later (without any additional modules and plugins), the recommendation for this value is key_buffer_size = 32M. Ideally you want the database to be reading once from the disk for every 100 requests so monitor that the value is suitable for your install by adjusting the value of key_buffer_size so that the following formulas are true:&lt;br /&gt;
 key_read / key_read_requests &amp;lt; 0.01&lt;br /&gt;
 key_write / key_write_requests &amp;lt;= 1.0&lt;br /&gt;
* Set the &#039;&#039;&#039;maximum number of connections&#039;&#039;&#039; so that your users will not see a &amp;quot;Too many connections&amp;quot; message. Be careful that this may have an impact on the total memory used. MySQL connections usually last for milliseconds, so it is unusual even for a heavily loaded server for this value to be over 200.&lt;br /&gt;
* Manage &#039;&#039;&#039;high burst activity&#039;&#039;&#039;. If your Moodle install uses a lot of quizzes and you are experiencing performance problems (check by monitoring the value of threads_connected - it should not be rising) consider increasing the value of back_log.&lt;br /&gt;
* &#039;&#039;&#039;Optimize your tables weekly and after upgrading Moodle&#039;&#039;&#039;. It is good practice to also optimize your tables after performing a large data deletion exercise, e.g. at the end of your semester or academic year. This will ensure that index files are up to date. Backup your database first and then use:&lt;br /&gt;
 mysql&amp;gt;CHECK TABLE mdl_tablename;&lt;br /&gt;
 mysql&amp;gt;OPTIMIZE TABLE mdl_tablename;&lt;br /&gt;
:The common tables in Moodle to check are mdl_course_sections, mdl_forum_posts, mdl_log and mdl_sessions (if using dbsessions). Any errors need to be corrected using REPAIR TABLE (see the [http://dev.mysql.com/doc/refman/5.0/en/repair-table.html MySQL manual]).&lt;br /&gt;
* &#039;&#039;&#039;Maintain the key distribution&#039;&#039;&#039;. Every month or so it is a good idea to stop the mysql server and run these myisamchk commands.&lt;br /&gt;
 #myisamchk -a -S /pathtomysql/data/moodledir/*.MYI&lt;br /&gt;
:&#039;&#039;&#039;Warning&#039;&#039;&#039;: You must stop the mysql database process (mysqld) before running any myisamchk command. If you do not, you risk data loss.&lt;br /&gt;
* Reduce the number of &#039;&#039;&#039;temporary tables saved to disk&#039;&#039;&#039;. Check this with the created_tmp_disk_tables value. If this is relatively large (&amp;gt;5%) increase tmp_table_size until you see a reduction. Note that this will have an impact on RAM usage.&lt;br /&gt;
* Moodle&#039;s tables are in the MyISAM format, so &#039;&#039;&#039;turn InnoDB off&#039;&#039;&#039; as there is no performance gain. If you must use InnoDB, you&#039;ll have to convert all of Moodle&#039;s tables. To do this run the innodb script:&lt;br /&gt;
&lt;br /&gt;
 http://www.mymoodle.com/admin/innodb.php&lt;br /&gt;
&lt;br /&gt;
===Other database performance links===&lt;br /&gt;
* Consider using a &#039;&#039;&#039;distributed cacheing system&#039;&#039;&#039; like [http://en.wikipedia.org/wiki/Memcached memcached] but note that memcached does not have any security features so it should be used behind a firewall.&lt;br /&gt;
* Consider using PostgresSQL. See [[Arguments in favour of PostgreSQL]]&lt;br /&gt;
* [[Increasing the database connection lifetime | Try increasing the database connection lifetime]]&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/server-parameters.html General advice on tuning MySQL parameters] (advice from the MySQL manual)&lt;br /&gt;
&lt;br /&gt;
==Moodle Admin settings==&lt;br /&gt;
* Enable the &#039;&#039;&#039;language cache&#039;&#039;&#039;.&lt;br /&gt;
* Large log files can cause overall performance to degrade over time. If you observe that the site has gradually got slower loading pages in the browser, &#039;&#039;&#039;reduce your Log life time&#039;&#039;&#039; setting (Admin/Configuration/Variables/Maintenance).&lt;br /&gt;
* In Moodle 1.7 or later, enable the &#039;&#039;&#039;record cache&#039;&#039;&#039;. This will act as a primary cache and improve database access performance.&lt;br /&gt;
* Performance can be greatly improved by allowing Moodle to use the system &#039;&#039;&#039;zip/unzip&#039;&#039;&#039; commands (rather than PHP-based zip libraries) - visit Admin/Configure/Variables and enter the path to the relevant executables. (Similarly, filling in the path to &#039;&#039;&#039;du&#039;&#039;&#039; will improve Moodle&#039;s speed at listing directory contents.)&lt;br /&gt;
* Note that using &#039;&#039;&#039;secure web connections&#039;&#039;&#039; (&#039;&#039;&#039;https&#039;&#039;&#039; rather than &#039;&#039;&#039;http&#039;&#039;&#039;) carries a higher processing burden, both for the webserver and the client - particularly because cacheing cannot be used as effectively, so the number of file requests is likely to increase dramatically. For this reason using https for all Moodle pages is not recommended. You can enable https just for the login screen, simply from Moodle&#039;s config page.&lt;br /&gt;
* Check your &#039;&#039;&#039;filters&#039;&#039;&#039;. Having too many filters active can have serious effects on server load, especially on lower-end systems. The number of active filters has a direct effect on the perceived latency of your site; that is the time taken for each page impression. &lt;br /&gt;
* Enable the &#039;&#039;&#039;text cache&#039;&#039;&#039; but do not &amp;quot;Filter all strings&amp;quot; unless you have a specific need. If in doubt profile the performance, and see how your changes affect the processing time.&lt;br /&gt;
* Check your &#039;&#039;&#039;anti-virus&#039;&#039;&#039; measures on the server.  Although they are useful for preventing security holes being exploited, some &amp;quot;On-Demand&amp;quot; scanners can affect performance by scanning page content (word, ppt files etc).&lt;br /&gt;
* If there are performance problems loading course pages, check the &#039;&#039;&#039;Resource module settings&#039;&#039;&#039;. The setting resource_filterexternalpages is known to slow-down course pages and should be set to &#039;No&#039; for better performance.&lt;br /&gt;
* Check your &#039;&#039;&#039;forum settings&#039;&#039;&#039;. To improve performance set forum_trackreadposts = No and forum_usermarksread = Yes (this will impact on the convenience of your users&#039; forum experience). Also consider setting the time of the day when old posts are cleared from the read table (forum_cleanreadtime) to when your site is less busy.&lt;br /&gt;
&lt;br /&gt;
==Performance of different Moodle modules==&lt;br /&gt;
&lt;br /&gt;
Moodle&#039;s activity modules, filters, and other plugins can be activated/deactivated. If necessary, you may wish to deactivate some features (such as chat) if not required - but this isn&#039;t necessary. Some notes on the performance of certain modules:&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;Chat&#039;&#039;&#039; module is [http://moodle.org/mod/forum/discuss.php?d=37979&amp;amp;parent=175079 said] to be a hog in terms of frequent HTTP requests to the main server. This can be reduced by setting the module to use &#039;&#039;Streamed&#039;&#039; updates, or, if you&#039;re using a Unix-based webserver, by running the chat in daemon mode. When using the Chat module use the configuration settings to tune for your expected load. Pay particular attention to the &#039;&#039;chat_old_ping&#039;&#039; and &#039;&#039;chat_refresh&#039;&#039; parameters as these can have greatest impact on server load.&lt;br /&gt;
* The &#039;&#039;&#039;quiz&#039;&#039;&#039; activity is known to stretch database performance. Try to optimise your database server by tuning. See [http://moodle.org/mod/forum/discuss.php?d=25616&amp;amp;parent=120770 for a brief report on performance for 55 students simultaneously using quizzes]&lt;br /&gt;
* The Moodle &#039;&#039;&#039;Cron&#039;&#039;&#039; task is triggered by calling the script &#039;&#039;cron.php&#039;&#039;. If this is called over HTTP (e.g. using wget or curl) it can take a large amount of memory on large installations. If it is called by directly invoking the php command (e.g. &#039;&#039;php -f /path/to/moodle/directory/admin/cron.php&#039;&#039;) efficiency can be much improved.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/view.php?f=94 Servers and Performance] forum&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=57028 Performance perspectives - a little script] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Performance]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Performance]]&lt;br /&gt;
[[ja:パフォーマンス]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=20098</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=20098"/>
		<updated>2007-02-09T13:08:22Z</updated>

		<summary type="html">&lt;p&gt;Mstous: Added another Ubuntu install guide&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Setting up the [http://www.howtoforge.com/perfect_setup_ubuntu_6.06 Perfect Ubuntu 6.06 server]&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19862</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19862"/>
		<updated>2007-02-01T22:05:31Z</updated>

		<summary type="html">&lt;p&gt;Mstous: corrected and clarified&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
The mysql command will prompt for your &#039;&#039;NewRootDatabasePassword&#039;&#039; (from above).&lt;br /&gt;
Replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We now need to edit the location of the default web site.  On lines five and ten, replace &#039;&#039;/var/www/&#039;&#039; with &#039;&#039;/var/www/moodle/&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19861</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19861"/>
		<updated>2007-02-01T21:58:17Z</updated>

		<summary type="html">&lt;p&gt;Mstous: combined commands&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav-freshclam clamav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19860</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19860"/>
		<updated>2007-02-01T21:55:26Z</updated>

		<summary type="html">&lt;p&gt;Mstous: removed redundant info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19859</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19859"/>
		<updated>2007-02-01T21:53:44Z</updated>

		<summary type="html">&lt;p&gt;Mstous: combined commands&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
The following mod-security, ldap, and odbc libraries are optional.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&lt;br /&gt;
sudo apt-get libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the installs.&lt;br /&gt;
&lt;br /&gt;
Restart Apache&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19858</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19858"/>
		<updated>2007-02-01T21:49:13Z</updated>

		<summary type="html">&lt;p&gt;Mstous: simplfied the command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&lt;br /&gt;
There is no space between the &#039;&#039;-p&#039;&#039; and the password on the second command.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19857</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19857"/>
		<updated>2007-02-01T21:46:29Z</updated>

		<summary type="html">&lt;p&gt;Mstous: corrected and clarified&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html manually configure]&#039;&#039;&#039; and set an IP address (or autoconfig if you don&#039;t know). &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;([http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/s1-grub-whatis.html may need to be under cylinder 1024 on your harddrive to be bootable])&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on lines 22 and 38 to enable access to the universe package source and universe security updates. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;[http://help.ubuntu.com/6.06/ubuntu/serverguide/C/apt-get.html sudo apt-get upgrade]&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19701</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19701"/>
		<updated>2007-01-29T02:41:47Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Other Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19700</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19700"/>
		<updated>2007-01-29T02:33:04Z</updated>

		<summary type="html">&lt;p&gt;Mstous: Added moodle security link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* Moodle [[Security]]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19682</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19682"/>
		<updated>2007-01-27T15:45:09Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install Moodle */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19681</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19681"/>
		<updated>2007-01-27T15:42:40Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install MySQL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19680</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19680"/>
		<updated>2007-01-27T15:42:11Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install MySQL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server and type.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19679</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19679"/>
		<updated>2007-01-27T15:39:53Z</updated>

		<summary type="html">&lt;p&gt;Mstous: Major link reformat&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu - [http://help.ubuntu.com/community/Security 1] [http://www.computerworld.com/action/article.do?command=printArticleBasic&amp;amp;articleId=9002691  2] security&lt;br /&gt;
* Debian - [http://www.debian.org/security/ 1] [http://www.us.debian.org/doc/user-manuals#securing 2] security&lt;br /&gt;
* Linux - [http://www.linux-sec.net/ 1] [http://www.puschitz.com/SecuringLinux.shtml 2] [http://www.linuxsecurity.com/docs/LDP/Security-HOWTO/ 3] security&lt;br /&gt;
* MySQL - [http://dev.mysql.com/doc/refman/5.0/en/security.html 1] [http://www.securityfocus.com/infocus/1667 2] security&lt;br /&gt;
* Apache - [http://httpd.apache.org/docs/2.0/misc/security_tips.html 1] [http://www.cisecurity.org/bench_apache.html 2] security&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19678</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19678"/>
		<updated>2007-01-27T15:05:06Z</updated>

		<summary type="html">&lt;p&gt;Mstous: added more links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* [http://help.ubuntu.com/community/Security Ubuntu]/[http://www.us.debian.org/doc/user-manuals#securing Debian]/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* [http://httpd.apache.org/docs/2.0/misc/security_tips.html Apache security]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;br /&gt;
* [http://www.modsecurity.org/documentation/index.html Modsecurity apache2 module]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19677</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19677"/>
		<updated>2007-01-27T14:50:27Z</updated>

		<summary type="html">&lt;p&gt;Mstous: explination on clamav command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* [http://httpd.apache.org/docs/2.0/misc/security_tips.html Apache security]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19676</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19676"/>
		<updated>2007-01-27T14:49:06Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Directions: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* [http://httpd.apache.org/docs/2.0/misc/security_tips.html Apache security]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19675</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19675"/>
		<updated>2007-01-27T14:48:50Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* What you need to start: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* [http://httpd.apache.org/docs/2.0/misc/security_tips.html Apache security]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19674</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19674"/>
		<updated>2007-01-27T14:48:07Z</updated>

		<summary type="html">&lt;p&gt;Mstous: Added another reference link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* [http://httpd.apache.org/docs/2.0/misc/security_tips.html Apache security]&lt;br /&gt;
* Another [http://help.ubuntu.com/community/MySQLMoodle Ubuntu and Moodle install] document&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19673</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19673"/>
		<updated>2007-01-27T14:40:23Z</updated>

		<summary type="html">&lt;p&gt;Mstous: added apache security link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* [http://httpd.apache.org/docs/2.0/misc/security_tips.html Apache security]&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19672</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19672"/>
		<updated>2007-01-27T14:38:27Z</updated>

		<summary type="html">&lt;p&gt;Mstous: removed unnessasary word&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19671</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19671"/>
		<updated>2007-01-27T14:30:01Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Install MySQL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice. There is no space between the &#039;&#039;-p&#039;&#039; and the password.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL PRIVILEGES ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19670</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19670"/>
		<updated>2007-01-27T14:29:07Z</updated>

		<summary type="html">&lt;p&gt;Mstous: corrected command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL PRIVILEGES ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19669</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19669"/>
		<updated>2007-01-27T14:28:14Z</updated>

		<summary type="html">&lt;p&gt;Mstous: added mysql security link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -p NewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL PRIVILEGES ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* [http://dev.mysql.com/doc/refman/5.0/en/security.html MySQL security]&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19668</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19668"/>
		<updated>2007-01-27T14:20:20Z</updated>

		<summary type="html">&lt;p&gt;Mstous: clarified mysql password line&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword -p NewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Notice that you have to enter your database password twice.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL PRIVILEGES ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* MySQL security&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19667</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19667"/>
		<updated>2007-01-27T14:11:13Z</updated>

		<summary type="html">&lt;p&gt;Mstous: simplfied mysql command&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost -p password NewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will need to type your &#039;&#039;NewRootDatabasePassword&#039;&#039; at the password prompt.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT ALL PRIVILEGES ON moodle.* TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* MySQL security&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19658</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19658"/>
		<updated>2007-01-27T04:55:41Z</updated>

		<summary type="html">&lt;p&gt;Mstous: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
Replace the following string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost -p password NewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You will need to type your &#039;&#039;NewRootDatabasePassword&#039;&#039; at the password prompt.&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install.&lt;br /&gt;
&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple openssh-server unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
sudo apt-get install clamav&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Press &#039;&#039;Y&#039;&#039; to continue the install after each of these apt-get commands.&lt;br /&gt;
&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Enter your &#039;&#039;RootDatabasePassword&#039;&#039; at the prompt and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.*&lt;br /&gt;
TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* MySQL security&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19657</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19657"/>
		<updated>2007-01-27T04:31:48Z</updated>

		<summary type="html">&lt;p&gt;Mstous: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-one to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
Replace the string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Replace the string &#039;&#039;RootDatabasePassword&#039;&#039; with the database password from above and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.*&lt;br /&gt;
TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* MySQL security&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19656</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19656"/>
		<updated>2007-01-27T02:44:45Z</updated>

		<summary type="html">&lt;p&gt;Mstous: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-two to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Just press &#039;&#039;Y&#039;&#039; to install the updates. Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
Replace the string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Replace the string &#039;&#039;RootDatabasePassword&#039;&#039; with the database password from above and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.*&lt;br /&gt;
TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* MySQL security&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19548</id>
		<title>Step-by-step Install Guide for Ubuntu</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/test/index.php?title=Step-by-step_Install_Guide_for_Ubuntu&amp;diff=19548"/>
		<updated>2007-01-24T13:19:09Z</updated>

		<summary type="html">&lt;p&gt;Mstous: /* Other Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
== What you need to start: ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]&lt;br /&gt;
*A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.&lt;br /&gt;
*One hour of time. (seriously!)&lt;br /&gt;
&lt;br /&gt;
== Directions: ==&lt;br /&gt;
&lt;br /&gt;
=== Install Ubuntu ===&lt;br /&gt;
Start computer and use F12 to boot from CD.&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;Install to hard drive&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;language&#039;&#039;&#039;, &#039;&#039;&#039;country&#039;&#039;&#039;, and &#039;&#039;&#039;keyboard layout&#039;&#039;&#039; (i.e. English, United States, American English)&lt;br /&gt;
&lt;br /&gt;
Select &#039;&#039;&#039;autodetect network&#039;&#039;&#039;, if you have DHCP. Should [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/network-configuration.html change it to a static IP] in a development or production environment. &lt;br /&gt;
&lt;br /&gt;
Enter your servername (i.e. moodletest)&lt;br /&gt;
&lt;br /&gt;
Select to &#039;&#039;&#039;manually edit the partition table&#039;&#039;&#039;.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;table&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td width=%10&amp;gt;/boot&amp;lt;/td&amp;gt;&amp;lt;td width=%10&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right width=%10&amp;gt;200MB&amp;lt;/td&amp;gt;&amp;lt;td align=center width=%10&amp;gt;bootable&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(needs to be on the first part of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;10GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(files are relatively static)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;swap&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;4GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;(4xRAM if you don&#039;t have much memory, down to 1xRAM if you have gobs of memory)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;/var&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;ext3&amp;lt;/td&amp;gt;&amp;lt;td align=right&amp;gt;26GB&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;(variable content – uses rest of the drive)&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
:&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Select your &#039;&#039;&#039;timezone&#039;&#039;&#039;. (i.e. Central)&lt;br /&gt;
&lt;br /&gt;
Set clock to &#039;&#039;&#039;Universal Time&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Enter Administrators &#039;&#039;&#039;full name&#039;&#039;&#039;. (i.e. Joe Smith)&lt;br /&gt;
&lt;br /&gt;
Enter &#039;&#039;&#039;account name&#039;&#039;&#039;. (i.e. joesmith)&lt;br /&gt;
&lt;br /&gt;
Enter a secure password.  (‘abcde’ is not a good one!)&lt;br /&gt;
&lt;br /&gt;
Let the computer restart.&lt;br /&gt;
&lt;br /&gt;
Log in your account.&lt;br /&gt;
&lt;br /&gt;
Edit the &#039;&#039;/etc/apt/sources.list&#039;&#039; file. Remove the &#039;&#039;#&#039;&#039; mark on line twenty-two to enable access to the universe package source. You will need to re-enter your account password when &#039;&#039;sudo&#039;&#039; asks for it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apt/sources.list  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now to get all the security updates.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get updatet&lt;br /&gt;
&lt;br /&gt;
sudo apt-get dselect-upgrade&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Just press &#039;&#039;Y&#039;&#039; to install the updates. Normally you would just use &#039;&#039;sudo apt-get upgrade&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
And reboot to run on the new kernel!&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo reboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install MySQL ===&lt;br /&gt;
At this point we&#039;ll need to log in again to the server.&lt;br /&gt;
&lt;br /&gt;
Replace the string &#039;&#039;NewRootDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install mysql-server mysql-client&lt;br /&gt;
&lt;br /&gt;
mysqladmin –u root password NewRootDatabasePassword&lt;br /&gt;
&lt;br /&gt;
mysqladmin -u root -h localhost password NewRootDatabasePassword&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Install Apache ===&lt;br /&gt;
&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install apache2 libapache2-mod-php5 php5-gd php5-mysqli &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It&#039;s that simple!&lt;br /&gt;
&lt;br /&gt;
=== Install other software ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install ntp ntp-simple unattended-upgrades&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install clamav unzip zip aspell-en&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install libapache2-mod-security php5-ldap php5-odbc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The clamav package will support virus checking on file uploads into Moodle.&lt;br /&gt;
&lt;br /&gt;
Additional languages are available for aspell.&lt;br /&gt;
&lt;br /&gt;
The LDAP and ODBC packages will help our Moodle authenticate via Active Directory and enroll via an Oracle database.&lt;br /&gt;
&lt;br /&gt;
=== Install Moodle ===&lt;br /&gt;
On the command line, type:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /var/www&lt;br /&gt;
&lt;br /&gt;
sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo tar –zxf moodle-latest-17.tgz&lt;br /&gt;
&lt;br /&gt;
sudo mkdir /var/moodledata&lt;br /&gt;
&lt;br /&gt;
sudo chown –R www-data.www-data /var/moodledata /var/www/moodle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
We now need to edit the location of the default web site.  On lines four and nine, replace &#039;&#039;/var/www&#039;&#039; with &#039;&#039;/var/www/moodle&#039;&#039;. Restart Apache.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo nano /etc/apache2/sites-available/default  &lt;br /&gt;
&lt;br /&gt;
sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, we need to create the Moodle database and Moodle user in MySQL.&lt;br /&gt;
&lt;br /&gt;
Replace the string &#039;&#039;RootDatabasePassword&#039;&#039; with the database password from above and replace &#039;&#039;NewMoodleDatabasePassword&#039;&#039; with a secure password of your own choosing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql -u root -p RootDatabasePassword&lt;br /&gt;
CREATE DATABASE moodle;&lt;br /&gt;
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER ON moodle.*&lt;br /&gt;
TO moodle@localhost IDENTIFIED BY &#039;NewMoodleDatabasePassword&#039;;&lt;br /&gt;
FLUSH PRIVILEGES;&lt;br /&gt;
QUIT;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure Moodle website ===&lt;br /&gt;
ifconfig (look for your server’s ip address on the 2nd line)&lt;br /&gt;
&lt;br /&gt;
On another computer open a web browser and put in your server address&lt;br /&gt;
&lt;br /&gt;
Complete the Moodle install using a secure username and password&lt;br /&gt;
&lt;br /&gt;
Go to a bar for a few hours.&lt;br /&gt;
&lt;br /&gt;
Come back and tell your boss that you FINALLY got the test server running.&lt;br /&gt;
&lt;br /&gt;
== Other Resources ==&lt;br /&gt;
&lt;br /&gt;
* Ubuntu 6.06 Server Guide - [http://help.ubuntu.com/6.06/ubuntu/serverguide/C/index.html HTML] [http://help.ubuntu.com/6.06/pdf/ubuntu/C/serverguide.pdf PDF]&lt;br /&gt;
* Ubuntu/Debian/Linux security&lt;br /&gt;
* MySQL security&lt;br /&gt;
* Apache security&lt;/div&gt;</summary>
		<author><name>Mstous</name></author>
	</entry>
</feed>