IT Training Plan

Day 1 - restarting moodle webservers (nginx and php-fpm)

  • putty
  • adduser
  • usermod -aG sudo
  • ssh user@172.105.217.30
  • sudo systemctl restart
    • nginx
    • php7.1-fpm
    • php7.2-fpm
    • mysqld
  • chmod +x
  • restart bash script

Day 2 - linux backup basics (tar and rsync)

  • I'll create a script to quickly make a folder with a lot of files
  • I'll ask everyone to tarball the folder
  • I'll ask everyone to rsync the folder into another folder
  • We'll log into the backhub server
  • We'll tarball the important Nephila folders
  • We'll rsync pull down to the laptop

rsync

tar

Day 3 - installing moodle the easy way

  • Present a roy-tutorial on installing moodle on a VPS
  • Create nanodes for everyone
  • Ask everyone to follow the tutorial and STOP at the Moodle installation web page

    R :: results we want

    O :: observations to make along the way

    W :: why we do it this way

Day 4 - securing moodle the easy way

  • Do the DNS setup
  • use Let's Encrypt
  • update config.php and sites-available/moodle
  • Check for https
  • Finish Moodle installation
  • Log in as admin

Day 5 - config moodle for large uploads

  • Create a course
  • rsync a large course into the server
  • Try to restore a large course
  • adjust config.php to increase upload size
  • Restore a large course

php.ini

Find the correct php.ini

php -i | grep php.ini

Site admins can display phpinfo in moodle

Settings > Site administration > Server > PHP info

PHP settings

sudo nano /etc/php/7.4/fpm/php.ini
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
cgi.fix_pathinfo = 0
upload_max_filesize = 200M
max_execution_time = 360
date.timezone = Asia/Singapore

post_max_size = 200M

Day 6 -

  • install moosh
  • sudo -u www-data watch moosh top
  • sudo -u www-data moosh course-list
  • check database
  • sudo -u www-data moosh course-delete
  • go over the backup script

Day 7

  • go over the bulk_create_restore script
  • install goodls
  • get api key
  • download .mbz directory
  • realpath
  • redirection: >
  • run the bulk_create_restore script

Day 8

Try Ruby