This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
computing:moodle [2018/08/04 17:54] – created oemb1905 | computing:moodle [2021/11/20 21:35] (current) – oemb1905 | ||
---|---|---|---|
Line 12: | Line 12: | ||
------------------------------------------- | ------------------------------------------- | ||
- | First, | + | Make sure you have LAMP/FEMP and TLS set up first. |
+ | [[https:// | ||
- | --- //[[netcmnd@jonathanhaack.com|oemb1905]] | + | sudo apt-get install aspell graphviz php-curl php-gd php-intl php-ldap php-mysql php-pspell php-xml php-xmlrpc php-zip php-soap php-mbstring libapache2-mod-php |
+ | |||
+ | Next, let's download the latest moodle and place it in the web-root: | ||
+ | |||
+ | cd ~/ | ||
+ | curl -L https:// | ||
+ | sudo tar -xvzf moodle.tgz -C /var/www/ | ||
+ | sudo mv / | ||
+ | |||
+ | Create your moodle' | ||
+ | |||
+ | sudo mkdir / | ||
+ | sudo chown www-data -R / | ||
+ | sudo chmod 0770 -R / | ||
+ | |||
+ | Now, it is time to ser up your database: | ||
+ | |||
+ | sudo mysql -u root -p | ||
+ | > CREATE DATABASE database DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | ||
+ | create user ' | ||
+ | > GRANT SELECT, | ||
+ | > FLUSH PRIVILEGES; | ||
+ | > 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: | ||
+ | |||
+ | sudo systemctl restart apache2 | ||
+ | sudo systemctl restart mysql | ||
+ | |||
+ | Now we need to temporarily make the Moodle server world writeable so that we can configure it from our web browser: | ||
+ | |||
+ | sudo chmod -R 777 / | ||
+ | |||
+ | You may get a glitch with Debian which is covered on [[https:// | ||
+ | |||
+ | cd / | ||
+ | sudo nano php.config | ||
+ | |||
+ | In the first five lines, the configuration specifies " | ||
+ | |||
+ | [Updating Now - please be patient] | ||
+ | |||
+ | 1. moodledata directory and all of its contents (and subdirectories, | ||
+ | |||
+ | sudo find / | ||
+ | |||
+ | |||
+ | owner: apache user (apache, httpd, www-data, whatever; see above) | ||
+ | group: apache group (apache, httpd, www-data, whatever; see above) | ||
+ | permissions: | ||
+ | |||
+ | 2. moodle directory and all of its contents and subdirectories (including config.php): | ||
+ | |||
+ | owner: root | ||
+ | group: root | ||
+ | permissions: | ||
+ | |||
+ | If you allow local logins for regular users, then 2. should be: | ||
+ | |||
+ | owner: root | ||
+ | group: apache group (apache, httpd, www-data, whatever; see above) | ||
+ | permissions: | ||
+ | |||
+ | |||
+ | |||
+ | This tutorial is a designated " | ||
+ | |||
+ | --- // |