moodLearning Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
moodle-installation-notes [2020/09/16 12:58]
serbizadmin [SSL Certificate]
moodle-installation-notes [2020/09/16 23:05]
serbizadmin [Moodle Setup]
Line 49: Line 49:
  
 ====== Moodle====== ====== Moodle======
-  sudo chown www-data:www-data -R /var/www/moodle+  sudo chown www-data:www-data -R /var/www/html/moodle
   sudo chmod 775 -R /var/www/html/moodle   sudo chmod 775 -R /var/www/html/moodle
  
Line 56: Line 56:
   sudo chown www-data:www-data -R  /var/moodledata   sudo chown www-data:www-data -R  /var/moodledata
  
-  cd /var/www/moodle/+  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:
 <VirtualHost *:80>  <VirtualHost *:80> 
 ServerAdmin [email protected] ServerAdmin [email protected]
-DocumentRoot /var/www/moodle/ +DocumentRoot /var/www/html/moodle/ 
 ServerName myrmoodle.prime.edu.ph  ServerName myrmoodle.prime.edu.ph 
-  <Directory /var/www/moodle/> +  <Directory /var/www/html/moodle/> 
   Options +FollowSymlinks    Options +FollowSymlinks 
   AllowOverride All    AllowOverride All 
Line 110: Line 110:
 <code> <code>
     Web address: [ your IP address or domain name ]     Web address: [ your IP address or domain name ]
-    Moodle directory: /var/www/moodle+    Moodle directory: /var/www/html/moodle
     Data Directory: /var/moodledata     Data Directory: /var/moodledata
 </code> </code>
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 requires that you have a proper rDNS entry on your machine and your DNS points to your machine's IP with an A/AAAA record.
    sudo apt install snapd    sudo apt install snapd
    sudo snap install --classic certbot    sudo snap install --classic certbot