This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
moodle-installation-notes [2020/09/16 12:58] serbizadmin [SSL Certificate] |
moodle-installation-notes [2020/09/16 23:06] (current) serbizadmin [Backup/Moving to Another Machine] |
||
|---|---|---|---|
| Line 49: | Line 49: | ||
| ====== Moodle====== | ====== Moodle====== | ||
| - | sudo chown www-data: | + | sudo chown www-data: |
| sudo chmod 775 -R / | sudo chmod 775 -R / | ||
| Line 56: | Line 56: | ||
| sudo chown www-data: | sudo chown www-data: | ||
| - | cd / | + | cd /var/www/html/moodle/ |
| sudo cp config-dist.php config.php | sudo cp config-dist.php config.php | ||
| nano config.php | nano config.php | ||
| Line 83: | Line 83: | ||
| < | < | ||
| ServerAdmin [email protected] | ServerAdmin [email protected] | ||
| - | DocumentRoot / | + | DocumentRoot /var/www/html/ |
| ServerName myrmoodle.prime.edu.ph | ServerName myrmoodle.prime.edu.ph | ||
| - | < | + | < |
| Options +FollowSymlinks | Options +FollowSymlinks | ||
| AllowOverride All | AllowOverride All | ||
| Line 110: | Line 110: | ||
| < | < | ||
| Web address: [ your IP address or domain name ] | Web address: [ your IP address or domain name ] | ||
| - | Moodle directory: / | + | Moodle directory: /var/www/html/moodle |
| Data Directory: / | Data Directory: / | ||
| </ | </ | ||
| Line 133: | Line 133: | ||
| < | < | ||
| / | / | ||
| - | / | + | / |
| [ db backup ] | [ db backup ] | ||
| </ | </ | ||
| Line 162: | Line 162: | ||
| ====== SSL Certificate====== | ====== SSL Certificate====== | ||
| - | Every site needs encryption these days. So you may install an SSL Certificate on your site. This requires that you have a proper rDNS entry declared or indicated both on your DNS and your machine. | + | Every site needs encryption these days. So you may install an SSL Certificate on your site. This section |
| sudo apt install snapd | sudo apt install snapd | ||
| sudo snap install --classic certbot | sudo snap install --classic certbot | ||