{"id":4039,"date":"2020-06-28T12:19:26","date_gmt":"2020-06-28T03:19:26","guid":{"rendered":"https:\/\/www.xenos.jp\/~zen\/blog2\/?p=4039"},"modified":"2020-06-28T12:19:28","modified_gmt":"2020-06-28T03:19:28","slug":"post-4039","status":"publish","type":"post","link":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/2020\/06\/28\/post-4039\/","title":{"rendered":"Moodle\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e1\u30e2"},"content":{"rendered":"\n<p>Moodle\u3092Ubuntu Server 20.04\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u304d\u306e\u30e1\u30e2\u3002<\/p>\n\n\n\n<p>1. MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<pre>sudo apt install mariadb-server\n<\/pre>\n\n\n\n<p>2. PHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<pre>sudo apt install php7.4\n<\/pre>\n\n\n\n<p>3. apache2\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u7701\u7565\u3002<\/p>\n\n\n\n<p>4. \u95a2\u9023\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<pre>sudo apt install graphviz aspell ghostscript clamav php7.4-pspell php7.4-curl php7.4-gd php7.4-intl php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-ldap php7.4-zip php7.4-soap php7.4-mbstring<\/pre>\n\n\n\n<p>MariaDB\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/p>\n\n\n\n<p>5. MariaDB\u306e\u521d\u671f\u5316<\/p>\n\n\n\n<pre>sudo mysql_secure_installation<\/pre>\n\n\n\n<p>6. MariaDB\u306b\u3001Moodle\u7528\u306eDB\u4f5c\u6210<\/p>\n\n\n\n<pre>\nsudo mysql -u root\n\nCREATE DATABASE moodle DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;\n\nGRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,DROP,INDEX,ALTER ON moodle.* TO 'moodleuser'@'localhost' IDENTIFIED BY 'pa55m00d1e';\n<\/pre>\n\n\n\n<p>7. git\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u6700\u521d\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3001\u7701\u7565\uff09<\/p>\n\n\n\n<p>8. Moodle\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<p>git\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3066\u304f\u308b\u3002<\/p>\n\n\n\n<pre>\ncd \/opt\nsudo git clone git:\/\/git.moodle.org\/moodle.git\n<\/pre>\n\n\n\n<p>\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u3089\u3001\u4e0b\u8a18\u3002<\/p>\n\n\n\n<pre>\ngit clone https:\/\/github.com\/moodle\/moodle.git\n<\/pre>\n\n\n\n<p>\u30d6\u30e9\u30f3\u30c1\u3092\u9078\u629e\u3059\u308b\u3002<\/p>\n\n\n\n<pre>\nsudo git branch -a\nsudo git branch --track MOODLE_38_STABLE origin\/MOODLE_38_STABLE\nsudo git checkout MOODLE_38_STABLE\n<\/pre>\n\n\n\n<p>9. Moodle\u00a0\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/p>\n\n\n\n<p>\u30a6\u30a7\u30d6\u753b\u9762\u304b\u3089\u3001\u5404\u9805\u76ee\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/qiita.com\/intrajp\/items\/83b71061c9fda9ecc0ed\">https:\/\/qiita.com\/intrajp\/items\/83b71061c9fda9ecc0ed<\/a><\/li><li><a href=\"https:\/\/demo.tkita.net\/moodledocs\/35\/ja\/0e297b2ba4f6623a0cd0f3b260deb02e.html\">https:\/\/demo.tkita.net\/moodledocs\/35\/ja\/0e297b2ba4f6623a0cd0f3b260deb02e.html<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Moodle\u3092Ubuntu Server 20.04\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3068\u304d\u306e\u30e1\u30e2\u3002 1. MariaDB\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb sudo apt install mariadb-server 2. PHP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb sudo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[204],"class_list":["post-4039","post","type-post","status-publish","format-standard","hentry","category-tech-memo","tag-moodle"],"_links":{"self":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/comments?post=4039"}],"version-history":[{"count":1,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4039\/revisions"}],"predecessor-version":[{"id":4040,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/posts\/4039\/revisions\/4040"}],"wp:attachment":[{"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/media?parent=4039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/categories?post=4039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xenos.jp\/~zen\/blog2\/index.php\/wp-json\/wp\/v2\/tags?post=4039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}