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/15 04:46] serbizadmin [Mailer] |
moodle-installation-notes [2020/09/16 23:06] (current) serbizadmin [Backup/Moving to Another Machine] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{ :: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | Run these on screen so when you get cut off, you can just pick up from where you left off: | + | \\ |
+ | \\ | ||
+ | Run this command | ||
screen -dR primecut | screen -dR primecut | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Following the processes and commands below should enable you to run a fully functioning Moodle installation on a minimally endowed Ubuntu machine. | ||
====== Swap ====== | ====== Swap ====== | ||
fallocate -l 1G /swapfile1G | fallocate -l 1G /swapfile1G | ||
Line 42: | Line 49: | ||
====== Moodle====== | ====== Moodle====== | ||
- | sudo chown www-data: | + | sudo chown www-data: |
sudo chmod 775 -R / | sudo chmod 775 -R / | ||
Line 49: | 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 76: | 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 103: | 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 126: | Line 133: | ||
< | < | ||
/ | / | ||
- | / | + | / |
[ db backup ] | [ db backup ] | ||
</ | </ | ||
Line 153: | Line 160: | ||
echo "Just testing the send-only postfix" | echo "Just testing the send-only postfix" | ||
Note that the initial messages coming out of this server will be flagged as " | Note that the initial messages coming out of this server will be flagged as " | ||
+ | |||
+ | ====== SSL Certificate====== | ||
+ | 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' | ||
+ | sudo apt install snapd | ||
+ | sudo snap install --classic certbot | ||
+ | sudo certbot --apache | ||
+ | We recommend an autoredirect to the secure site. | ||
+ | Once done, confirm by adding S to your address in the " |