This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
computing:moodle [2019/07/06 11:54] oemb1905 |
computing:moodle [2019/07/31 19:56] (current) oemb1905 |
||
---|---|---|---|
Line 12: | Line 12: | ||
------------------------------------------- | ------------------------------------------- | ||
- | The pre-requisites: | + | Make sure you have LAMP/FEMP and TLS set up first. |
- | + | [[https:// | |
- | * Using Debian or similar | + | |
- | * Self Hosted Web Server using Apache | + | |
- | * Available Domain with DNS set up | + | |
- | * Self-Signed Certificate is established as backup | + | |
- | * Letsencrypt, | + | |
- | If you are missing some of these pre-requisites, please visit the [[https:// | + | sudo apt-get install |
- | sudo apt-get install aspell graphviz php7.0-curl php7.0-gd php7.0-intl php7.0-ldap php7.0-mysql php7.0-pspell php7.0-xml php7.0-xmlrpc php7.0-zip php7.0-soap php7.0-mbstring | + | Next, let's download |
- | + | ||
- | There is a [[https:// | + | |
+ | cd ~/Downloads | ||
curl -L https:// | curl -L https:// | ||
- | sudo tar -xvzf moodle.tgz -C / | + | sudo tar -xvzf moodle.tgz -C / |
+ | sudo mv / | ||
| | ||
- | Now that you have installed the moodle directory into your Web Server' | + | Create |
- | sudo mkdir -p /var/www/domain.com/ | + | sudo mkdir /var/www/lms.haacksnetworking.com/ |
- | sudo chown -R www-data /var/www/domain.com/ | + | sudo chown www-data |
- | sudo chmod 0770 /var/www/domain.com/ | + | sudo chmod 0770 -R /var/www/lms.haacksnetworking.com/ |
| | ||
- | If you visted the site and tutorial I shared, you may notice that it some database configurations for Ubuntu that are not required for stock Debian. | + | Now, it is time to ser up your database: |
sudo mysql -u root -p | sudo mysql -u root -p | ||
- | CREATE DATABASE | + | |
- | create user '__usernameofdatabase__' | + | create user 'databaseuser' |
- | GRANT SELECT, | + | |
- | | + | |
+ | > QUIT; | ||
Now the database is set up, so let's restart the mysql service and while we are at it, let's restart apache2 for good measure: | Now the database is set up, so let's restart the mysql service and while we are at it, let's restart apache2 for good measure: | ||
Line 52: | Line 48: | ||
sudo chmod -R 777 / | sudo chmod -R 777 / | ||
- | After this, use your web browser of choice and navigate to domain.com/ | + | You may get a glitch with Debian |
cd / | cd / | ||
sudo nano php.config | sudo nano php.config | ||
| | ||
- | In the first five lines, the configuration specifies " | + | In the first five lines, the configuration specifies " |
- | Moodle recommends the following directory hardening measures: | + | [Updating Now - please be patient] |
1. moodledata directory and all of its contents (and subdirectories, | 1. moodledata directory and all of its contents (and subdirectories, | ||
+ | |||
+ | sudo find / | ||
+ | |||
owner: apache user (apache, httpd, www-data, whatever; see above) | owner: apache user (apache, httpd, www-data, whatever; see above) | ||
Line 79: | Line 78: | ||
permissions: | permissions: | ||
- | Think of these permissions as the most paranoid ones. You can be secure enough with less tighter permissions, | + | |
This tutorial is a designated " | This tutorial is a designated " | ||
- | --- //[[netcmnd@jonathanhaack.com|oemb1905]] | + | --- //[[oemb1905@jonathanhaack.com|oemb1905]] |