{"id":1292,"date":"2019-05-31T09:20:06","date_gmt":"2019-05-31T01:20:06","guid":{"rendered":"https:\/\/umarzuki.org\/blogku\/?p=1292"},"modified":"2019-05-31T09:20:06","modified_gmt":"2019-05-31T01:20:06","slug":"cara-pasang-moodle-3-6-pada-debian-9","status":"publish","type":"post","link":"https:\/\/umarzuki.org\/blog\/2019\/05\/31\/cara-pasang-moodle-3-6-pada-debian-9\/","title":{"rendered":"Cara Pasang Moodle 3.6 Pada Debian 9"},"content":{"rendered":"<p>Pasang pakej-pakej yang diperlukan<\/p>\n<p>apt install php7.0 libapache2-mod-php7.0 php7.0-mysql php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline apache2 apache2-utils mysql-server php7.0-curl php7.0-gd php7.0-intl php7.0-zip php7.0-xml <\/p>\n<p>Sediakan database<\/p>\n<p>Dalam tag [server] \/etc\/mysql\/mariadb.conf.d\/50-server.cnf, tambahkan<\/p>\n<p>innodb_large_prefix = ON<\/p>\n<p>Simpan dan restart mariadb<\/p>\n<p>systemctl restart mariadb<\/p>\n<p><code>mysql -u root -p<br \/>\ncreate database moodle;<br \/>\nupdate mysql.user set plugin = 'mysql_native_password' where User='root';<br \/>\nSET GLOBAL innodb_file_format = barracuda;<br \/>\n\\q<\/code><\/p>\n<p>Pasang moodle<\/p>\n<p><code>cd \/var\/www<br \/>\ntar -xvf \/home\/user1\/moodle-latest-36.tgz<br \/>\nchown www-data \/var\/www\/moodle<br \/>\nchown -R root \/var\/www\/moodle<br \/>\nchmod -R 0755 \/var\/www\/moodle<br \/>\nchown www-data \/var\/www\/moodle<br \/>\ncd moodle\/admin\/cli\/<br \/>\nsudo -u www-data \/usr\/bin\/php install.php<\/code><\/p>\n<p>Contoh setting apache2<\/p>\n<p><code># cat \/etc\/apache2\/sites-available\/000-default.conf<br \/>\n<VirtualHost *:80><br \/>\n        # The ServerName directive sets the request scheme, hostname and port that<br \/>\n        # the server uses to identify itself. This is used when creating<br \/>\n        # redirection URLs. In the context of virtual hosts, the ServerName<br \/>\n        # specifies what hostname must appear in the request's Host: header to<br \/>\n        # match this virtual host. For the default virtual host (this file) this<br \/>\n        # value is not decisive as it is used as a last resort host regardless.<br \/>\n        # However, you must set it for any further virtual host explicitly.<br \/>\n        #ServerName www.example.com<\/p>\n<p>        ServerAdmin webmaster@localhost<br \/>\n        DocumentRoot \/var\/www\/moodle<br \/>\n        Alias \/moodle \/var\/www\/moodle<br \/>\n        <Directory \/var\/www\/moodle\/><br \/>\n                order allow,deny<br \/>\n                allow from all<br \/>\n        <\/Directory><\/p>\n<p>        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,<br \/>\n        # error, crit, alert, emerg.<br \/>\n        # It is also possible to configure the loglevel for particular<br \/>\n        # modules, e.g.<br \/>\n        #LogLevel info ssl:warn<\/p>\n<p>        ErrorLog ${APACHE_LOG_DIR}\/error.log<br \/>\n        CustomLog ${APACHE_LOG_DIR}\/access.log combined<\/p>\n<p>        # For most configuration files from conf-available\/, which are<br \/>\n        # enabled or disabled at a global level, it is possible to<br \/>\n        # include a line for only one particular virtual host. For example the<br \/>\n        # following line enables the CGI configuration for this host only<br \/>\n        # after it has been globally disabled with \"a2disconf\".<br \/>\n        #Include conf-available\/serve-cgi-bin.conf<br \/>\n<\/VirtualHost><\/p>\n<p># vim: syntax=apache ts=4 sw=4 sts=4 sr noet<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pasang pakej-pakej yang diperlukan apt install php7.0 libapache2-mod-php7.0 php7.0-mysql php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline apache2 apache2-utils mysql-server php7.0-curl php7.0-gd php7.0-intl php7.0-zip php7.0-xml Sediakan database Dalam tag [server] \/etc\/mysql\/mariadb.conf.d\/50-server.cnf, tambahkan innodb_large_prefix = ON Simpan dan restart mariadb systemctl restart mariadb mysql -u root -p create database moodle; update mysql.user set plugin = &#8216;mysql_native_password&#8217; where User=&#8217;root&#8217;; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[430],"tags":[429,431],"class_list":["post-1292","post","type-post","status-publish","format-standard","hentry","category-moodle","tag-debian-9","tag-moodle-3-6"],"_links":{"self":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/1292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/comments?post=1292"}],"version-history":[{"count":0,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/posts\/1292\/revisions"}],"wp:attachment":[{"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/media?parent=1292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/categories?post=1292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/umarzuki.org\/blog\/wp-json\/wp\/v2\/tags?post=1292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}