Moodlekurssit
https://ohtonordberg.fi/moodle/
Filut FTPeellä
https://stackoverflow.com/questions/39494038/upload-courses-to-moodle-via-ftp
Asentaminen
Mene ensin hakemistoon, mihin asennat Moodlen
cd www
git clone git://git.moodle.org/moodle.git
cd moodle
git branch -a
git clone -b MOODLE_38_STABLE git://git.moodle.org/moodle.git
git checkout MOODLE_38_STABLE
Sitten moodledata-hakemisto luodaan kotiin mkdir ~/moodledata
Sitten oikeudet kuntoon public html kansiolle chmod -R 0755 /path/to/moodle
selaimella osoitteeseen wwwosoite/moodle
Valitse tietokannaksi MariaDB
https://moodle.org/mod/forum/discuss.php?d=345372#p1392913
/var/www/user/moodledata/repository/Nimi
https://docs.moodle.org/31/en/File_upload_size
Moodle poistaminen
Taulut pois
https://stackoverflow.com/questions/4393/drop-all-tables-whose-names-begin-with-a-certain-string
SELECT CONCAT(’DROP TABLE `’, TABLE_NAME,’`;’)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME LIKE ’mdl%’
Kopioi generoitu lista leikepöydälle -> runnaa
Moodledata pois.
Käyttäjien lisääminen
Site administration -> Users -> Upload users
username | firstname | lastname | city | password | course1 |
config.php ja config-dist.php pitää laittaa https
The config.php is in your moodle folder. The replace script is found at yoursite/admin/tool/replace/index.php.
https://moodle.org/mod/forum/discuss.php?d=351645
Plugarit
https://ohtonordberg.fi/moodle/admin/tool/installaddon/index.php
https://moodle.org/plugins/pluginversions.php?plugin=mod_hotpot
Virtuaalikoneasennus, max filesize
nano /etc/php/7.3/apache2/php.ini
post_max_size = 1G
upload_max_fileszie = 1G
max_execution_time = 600
Moodle backup
db_dump dbname > dumppiname
mkdir moodle.bak
cp -a ./moodle /moodle.bak