- Download the latest version from https://download.moodle.org/
- Extract the zip file to your webroot directory
- APACHE SETUP:
1sudo gedit /etc/apache2/sites-available/moodle-3-11-5.test.conf
CONTENT
123456789101112<VirtualHost moodle-3-11-5.test:80>ServerName www.moodle-3-11-5.testDocumentRoot "/home/satria/Documents/projects/moodle-3-11-5"DirectoryIndex index.php<Directory "/home/satria/Documents/projects/moodle-3-11-5">AllowOverride AllAllow from AllRequire all granted</Directory>ErrorLog /var/log/apache2/moodle-3-11-5.error.logCustomLog /var/log/apache2/moodle-3-11-5.access.log combined</VirtualHost>
ENABLE THE VIRTUALHOST
1sudo a2ensite moodle-3-11-5.test.conf
RELOAD APACHE2
1sudo systemctl reload apache2
CREATE THE HOST
1sudo gedit /etc/hosts
INSERT:
1127.0.0.1 moodle-3-11-5.test
SET THE FILE PERMISSIONS & RELOAD APACHE2
12satria@teddy:~/Documents/projects$ sudo chmod -R 777 moodle-3-11-5/satria@teddy:~/Documents/projects$ sudo systemctl reload apache2
Create a moodle data directory in /home/satria/Documents/projects/moodledata then set the permission to 777OPEN: http://moodle-3-11-5.test/ (INSTALL FIRST!)
Select the database ‘mariadb’ then create the db
CHECK THE PHP CONFIG IN http://localhost/phpinfo.php
OR IN /etc/php/7.4/apache2/php.ini
CHANGE ‘max_input_vars’ TO at least 5000 (I made it 10000)
Create an username and password
|
1 2 3 4 5 |
username: admin password: Admin@123 First Name: Admin Sur Name: User |
OPEN: http://moodle-3-11-5.test/
ADMIN: http://moodle-3-11-5.test/my/