You are on page 1of 3

Andy Kroll - How to Install Moodle in Linux Mint

This tutorial installs Moodle in Linux Mint 13 Cinnamon 64bit Estimated Completion Time: 45 minutes to 1 Hour What you will do: Install Apache2 Install PHP5 Install MySQL Install Webmin Install Moodle 1. Download the required files for Moodle at Download.Moodle.org a. For this tutorial, download the Moodle 2.3.3.tgz (27.3 MB) 2. Install Apache2 a. Go to the terminal b. type in the following command: i. sudo apt-get install apache2 3. Install PHP5 a. Go to the terminal b. Type the following commands in the terminal: i. sudo apt-get install php5 ii. sudo apt-get install php5-curl iii. sudo apt-get install php5-xmlrpc iv. sudo apt-get install php5-intl v. sudo apt-get install php5-gd vi. sudo apt-get install libapache2-mod-php5 4. Restart Apache a. Go to the terminal b. Type the following command in the terminal: i. sudo /etc/init.d/apache2 restart 5. Install MySQL a. Go to the terminal b. Type the following command in the terminal: i. sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql c. A Configuring mysql-server-5.5 package config page comes up, type in the new password for the MySQL root user i. type in Password1 ii. Re-type in Password1 6. Create a database called moodle a. Go to the terminal b. Type the following without quotes:

mysql -u root -p 1. type in your password ii. at the mysql> prompt, type (remember the semi-colon at the end!): 1. CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; 2. USE moodle; 3. GRANT ALL PRIVILEGES ON moodle.* to root@localhost IDENTIFIED BY Password1; 4. FLUSH PRIVILEGES; 5. quit iii. Restart the mysql administrator tool by typing in the following command: *MAKE SURE YOU ARE ROOT, or the user you granted privileges to* 1. mysqladmin -p reload 2. Type in the root password c. Install Webmin i. Download Webmin from webmin.com and make sure you select the Debian package ii. Double click on the .deb package and install it iii. To access Webmin after it is installed, go to your web browser and type https://localhost:10000 1. Add the exception 2. Log on as root with the root password 3. Under servers you should see the Apache Webserver and MySQL Database d. Install Moodle i. Use the following commands to make an html directory in /var/www and moodledata directory 1. mkdir /var/www/html 2. mkdir /var/www/html/moodledata 3. chmod 777 /var/www/html/moodledata ii. Move the zipped moodle file to the /var/www/moodle directory 1. mkdir /var/www/moodle 2. mv /home/student/Downloads/moodle-2.3.3.tgz /var/www/moodle iii. Navigate to /var/www/moodle and extract the files into the directory 1. tar -xvzf moodle-2.3.3.tgz iv. Move extracted files from /var/www/moodle/moodle to /var/www/html 1. Go to terminal and type: a. mv /var/www/moodle/moodle /var/www/html v. Change permissions on /var/www/html/moodle folder 1. Go to terminal and type: a. chmod 777 /var/www/html/moodle b. chmod 777 /var/www/html/moodledata e. Change Virtual Server Options to go to /var/www/html/moodle path i. Go to Webmin

i.

f. g. h.

i. j.

k. l.

m. n. o. p.

ii. On left side select Servers and then Apache Webserver iii. Click on Virtual Server iv. Click Edit Directives v. Change the DocumentRoot from /var/www to /var/www/html/moodle vi. Click Save vii. Click Stop Apache viii. Click Start Apache To Verify you have done things correctly, go to your web browser and type localhost/install.php and a Moodle Installation page should come up On Moodle Installation page, Click Next On Conform Paths page, make sure all the paths are correct i. Web Address: http://localhost ii. Moodle directory: /var/www/html/moodle iii. Data Directory: /var/www/html/moodledata iv. Click Next On Choose Database Driver page click next On Database Settings page fill in the following: i. Database host: localhost ii. Database name: moodle iii. Database user: root iv. Database password: Password1 v. Tables prefix: mdl_ vi. Click Next Click Continue To fix the unicode set (not needed if you set it earlier): i. In terminal type: 1. mysql -u root -p a. Enter Password1 2. ALTER DATABASE moodle charset=utf8; 3. quit ii. In Webmin, Go to MySQL Database Server 1. Click Stop MySQL Server 2. Click Start MySQL Server Click Continue Click Continue Fill out the information for your administrative user and click Update Profile Fill out the Front Page Settings page and click Save Changes

You might also like