Saturday , August 19 2017
Home / LMS / How to Install Moodle in Ubuntu Web Server

How to Install Moodle in Ubuntu Web Server

How to Install Moodle in Ubuntu Web Server

  1. Update : sudo apt-get update
  2. Install Modules : sudo apt-get install apache2 mysql-client mysql-server php7.0 libapache2-mod-php7.0
  3. Install Modules : sudo apt-get install graphviz aspell php7.0-pspell php7.0-curl php7.0-gd php7.0-intl php7.0-mysql php7.0-xml php7.0-xmlrpc php7.0-ldap php7.0-zip php7.0-soap php7.0-mbstring
  4. Restart Apache to loaded modules correctly : sudo service apache2 restart
  5. Installing Git to install/update the Moodle Core Application : sudo apt-get install git-core
  6. Download the Moodle Code and Index : sudo git clone git://git.moodle.org/moodle.git
  7. Change directory into the downloaded Moodle folder : cd moodle
  8. Retrieve a list of each branch available : sudo git branch -a
  9. Tell git which branch to track or use : sudo git branch –track MOODLE_32_STABLE origin/MOODLE_32_STABLE
  10. Check the Moodle version : sudo git checkout MOODLE_32_STABLE
  11. Copy local repository to /var/www/html/
  12. sudo cp -R /opt/moodle /var/www/html/
  13. sudo mkdir /var/moodledata
  14. sudo chown -R www-data /var/moodledata
  15. sudo chmod -R 777 /var/moodledata

Setup MySQL Server

  1. sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf
    Under Basic Settings add the following line under the last statement.

    • default_storage_engine = innodb
    • innodb_file_per_table = 1
    • innodb_file_format = Barracuda
  2.  save my.cnf using the editor, press the Esc (Escape) key, type the following in sequence which will save :w then close the editor :q
  3. Restart MySQL : sudo service mysql restart

Check Also

Quit the vi editor without saving the changes

Tutorial of How to quit the vi editor without saving any changes you’ve made: See …

Leave a Reply

Your email address will not be published. Required fields are marked *

*