{"id":1575,"date":"2017-01-31T03:18:40","date_gmt":"2017-01-31T03:18:40","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=1575"},"modified":"2020-07-10T15:33:26","modified_gmt":"2020-07-10T15:33:26","slug":"moodle-3-2-1-installation","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/01\/31\/moodle-3-2-1-installation\/","title":{"rendered":"Moodle 3.2.1 Installation"},"content":{"rendered":"<ol>\n<li>Download the latest version from\u00a0https:\/\/download.moodle.org\/<\/li>\n<li>Extract the zip file to your webroot directory<\/li>\n<li>Install via your browser\u00a0http:\/\/localhost\/works\/moodle32\/install.php<br \/>\nMy setting:<\/p>\n<pre class=\"lang:default decode:true\">Web address: http:\/\/localhost\/works\/moodle32\r\nMoodle directory : \/home\/teddy\/Documents\/works\/moodle32\r\nData directory : \/home\/teddy\/moodledata\r\n<\/pre>\n<p>Make sure the &#8216;Data directory&#8217; can be written!<br \/>\nI created the dir &#8216;moodledata&#8217; then set the permission to 777<\/li>\n<li>Select the database &#8216;Improved MySQL\/mysqli)<br \/>\nMy setting:<\/p>\n<pre class=\"lang:default decode:true\">Database name: moodle32\r\nTables prefix: mdl_<\/pre>\n<p>But create the\u00a0new database &#8216;moodle32&#8217; via phpmyadmin first (collation: utf8-general-ci)<\/li>\n<li>Install and enable some php extensions required. For example I need to install also two php extension xmlrpc and intl (dont forget to restart the apache server after the installation)\n<pre class=\"lang:default decode:true\">teddy@teddy-K43SJ:~$ sudo apt-get install php5.6-xmlrpc\r\nteddy@teddy-K43SJ:~$ sudo apt-get install php5.6-intl\r\nteddy@teddy-K43SJ:~$ sudo service apache2 restart<\/pre>\n<p>Then refresh the page to see the changes<\/li>\n<li>Create an username and password\n<pre class=\"lang:default decode:true\">username: admin\r\npassword: Admin@123\r\n\r\nFirst Name: Admin\r\nSur Name: User<\/pre>\n<p>&nbsp;<\/li>\n<li>Site setting\n<pre class=\"lang:default decode:true \">Full site name (fullname) : Moodle 3.2.1 Test\r\nShort name for site (eg single word) (shortname) : moodle\r\n<\/pre>\n<p>&nbsp;<\/li>\n<li>Done. Here is the screenshot<br \/>\nAdmin dashboard (http:\/\/localhost\/works\/moodle32\/my\/)\u00a0<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/dashboard.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1582\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/dashboard-1024x502.png\" alt=\"\" width=\"840\" height=\"412\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/dashboard-1024x502.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/dashboard-300x147.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/dashboard-768x377.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/dashboard-1200x589.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/dashboard.png 1329w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Site Home (http:\/\/localhost\/works\/moodle32\/?redirect=0)<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/site_home.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1583\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/site_home-1024x377.png\" alt=\"\" width=\"840\" height=\"309\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/site_home-1024x377.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/site_home-300x110.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/site_home-768x283.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/site_home-1200x441.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/site_home.png 1332w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<li>Install and Change theme<br \/>\nCurrently the default theme is &#8216;Boost&#8217;. If you want to change the theme, you can find them on the internet. The free themes can be found in\u00a0<a href=\"https:\/\/moodle.org\/plugins\/browse.php?list=category&amp;id=3\">https:\/\/moodle.org\/plugins\/browse.php?list=category&amp;id=3<\/a>. Please find the correct support version (here, it should support moodle version 3.2). I use &#8216;Campus&#8217; theme as an example (<a href=\"https:\/\/moodle.org\/plugins\/theme_campus\">https:\/\/moodle.org\/plugins\/theme_campus<\/a>). The tutorial for the theme installation can be read in\u00a0<a href=\"https:\/\/github.com\/dasistwas\/moodle-theme_campus\/\">https:\/\/github.com\/dasistwas\/moodle-theme_campus\/<\/a>.<br \/>\nI downloaded the theme (https:\/\/moodle.org\/plugins\/download.php\/13006\/theme_campus_moodle32_2016121403.zip) then extract it in &#8216;\/theme\/&#8217; directory of my moodle installation (\/moodle32\/theme\/). Then Go to &#8216;Site Administration&#8217; -&gt; &#8216;Notification&#8217; or\u00a0http:\/\/localhost\/works\/moodle32\/admin\/index.php. It&#8217;d show this page (note: I use &#8216;Aadvark&#8217; theme here but the step is relatively same)<br \/>\n<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/install_theme.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1585\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/install_theme-1024x528.png\" alt=\"\" width=\"840\" height=\"433\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/install_theme-1024x528.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/install_theme-300x155.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/install_theme-768x396.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/install_theme.png 1143w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Then click &#8216;Upgrade Moodle database now&#8217; button. ATTN: SOMETIMES THE PROCESS TO UPGRADE THE DB IS SLOW (FOR CAMPUS THEME)!<br \/>\nIf success, click &#8216;Continue&#8217; button!.<br \/>\nThen We&#8217;d face the page setting for the theme (http:\/\/localhost\/works\/moodle32\/admin\/upgradesettings.php?). Make any change if necessary then click &#8216;Save Changes&#8217; button.<br \/>\nDONE<\/li>\n<li>To use the theme, Pls go to &#8216;Site Administration&#8217; -&gt; &#8216;Appearance&#8217; -&gt; &#8216;Themes&#8217; -&gt; &#8216;Theme Selector&#8217; or\u00a0http:\/\/localhost\/works\/moodle32\/theme\/index.php. On &#8216;Default&#8217;, click &#8216;Change theme&#8217;<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-theme.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1588\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-theme.png\" alt=\"\" width=\"737\" height=\"439\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-theme.png 737w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-theme-300x179.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Then select &#8216;Campus&#8217; theme. Click &#8216;Use theme&#8217; button (http:\/\/localhost\/works\/moodle32\/theme\/index.php?confirmation=1&amp;choose=campus).<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/select-campus-theme.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1589\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/select-campus-theme.png\" alt=\"\" width=\"745\" height=\"560\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/select-campus-theme.png 745w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/select-campus-theme-300x226.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Here is the &#8216;Campus&#8217; theme looks!<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/campus-theme.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1590\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/campus-theme-1024x477.png\" alt=\"\" width=\"840\" height=\"391\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/campus-theme-1024x477.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/campus-theme-300x140.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/campus-theme-768x358.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/campus-theme-1200x559.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/campus-theme.png 1328w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<li>I can do many things else like install and use your own language (Install new language: Site Administration -&gt; Language -&gt; Language Packs) then at &#8216;Language Settings&#8217;, change the default language. Then you can select and change the language from the frontend<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-lang.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1592\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-lang-1024x276.png\" alt=\"\" width=\"840\" height=\"226\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-lang-1024x276.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-lang-300x81.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-lang-768x207.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-lang-1200x324.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/change-lang.png 1298w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<li>Create a new user<br \/>\nPls go to\u00a0Site administration -&gt; Users -&gt; Accounts -&gt; Add a new user (http:\/\/localhost\/works\/moodle32\/user\/editadvanced.php?id=-1). Then fill the form<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-user.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1594\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-user.png\" alt=\"\" width=\"991\" height=\"922\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-user.png 991w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-user-300x279.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-user-768x715.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Then click &#8216;Create User&#8217;<\/li>\n<li>Create the courses (and the course category)<br \/>\nPls go to\u00a0Site administration -&gt; Courses -&gt; Add a category (http:\/\/localhost\/works\/moodle32\/course\/editcategory.php?parent=0) then fill the form.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-cat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1595\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-cat.png\" alt=\"\" width=\"972\" height=\"665\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-cat.png 972w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-cat-300x205.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-cat-768x525.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Then click &#8216;Create category&#8217;.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/cat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1596\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/cat.png\" alt=\"\" width=\"984\" height=\"323\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/cat.png 984w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/cat-300x98.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/cat-768x252.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Then click &#8216;Create new course&#8217;. Then fill the form.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-course.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1598\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-course-615x1024.png\" alt=\"\" width=\"615\" height=\"1024\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-course-615x1024.png 615w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-course-180x300.png 180w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-course-768x1280.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/new-course.png 995w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a>Then click &#8216;Save and return&#8217;. You can add some more courses. So here is the looks.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course-first-year.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1599\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course-first-year.png\" alt=\"\" width=\"595\" height=\"334\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course-first-year.png 595w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course-first-year-300x168.png 300w\" sizes=\"auto, (max-width: 595px) 85vw, 595px\" \/><\/a><\/li>\n<li>Enroll (Add) users to the courses<br \/>\nFor example for adding the new user &#8216;salman&#8217; to the course &#8216;Calculus I&#8217;. First, click the course &#8216;Calculus I, <a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1601\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course.png\" alt=\"\" width=\"982\" height=\"1009\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course.png 982w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course-292x300.png 292w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/course-768x789.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>then click &#8216;Enrolled users&#8217; link.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-user.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1602\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-user.png\" alt=\"\" width=\"981\" height=\"357\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-user.png 981w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-user-300x109.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-user-768x279.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>then click &#8216;Enroll user&#8217; button.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-teacher.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1603\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-teacher.png\" alt=\"\" width=\"579\" height=\"527\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-teacher.png 579w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enroll-teacher-300x273.png 300w\" sizes=\"auto, (max-width: 579px) 85vw, 579px\" \/><\/a>then modify &#8216;Assign roles&#8217; to &#8216;Teacher&#8217; and click &#8216;Enrol&#8217; for user &#8216;Salman&#8217;. At the end, click &#8216;Finish enrolling users&#8217; button. Here is the result.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolled-user.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1604\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolled-user.png\" alt=\"\" width=\"974\" height=\"372\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolled-user.png 974w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolled-user-300x115.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolled-user-768x293.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>To add\/enroll a new user as a student, please create the new user like #12 then enroll this user as a student like above!<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolls.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1607\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolls.png\" alt=\"\" width=\"981\" height=\"434\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolls.png 981w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolls-300x133.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/enrolls-768x340.png 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><\/li>\n<li>ourses view as a teacher and a student.<br \/>\nLogout from the admin account. Here is the frontpage (http:\/\/localhost\/works\/moodle32\/) looks.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/frontpage.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1609\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/frontpage-1024x544.png\" alt=\"\" width=\"840\" height=\"446\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/frontpage-1024x544.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/frontpage-300x159.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/frontpage-768x408.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/frontpage.png 1142w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Then try to login as a teacher (user: salman, password: Salman@123). As a teacher, he\/she can change\/modify the course content (press the right button to on\/off the edit mode) and give\/add activity.<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/teacher-mode.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1610\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/teacher-mode-1024x396.png\" alt=\"\" width=\"840\" height=\"325\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/teacher-mode-1024x396.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/teacher-mode-300x116.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/teacher-mode-768x297.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/teacher-mode-1200x463.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/teacher-mode.png 1323w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Then \u00a0try to login as a student\u00a0(user: satria, password: Satria@123). As a student, he\/she can only read\/view the courses (cannot edit the course).<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/student-mode.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-1611\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/student-mode-1024x322.png\" alt=\"\" width=\"840\" height=\"264\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/student-mode-1024x322.png 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/student-mode-300x94.png 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/student-mode-768x242.png 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/student-mode-1200x377.png 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2017\/01\/student-mode.png 1297w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>Moodle 1.9.7<br \/>\nUSE PHP 5.6 &#8212; NO NEED TO CHANGE PHP CLI<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ sudo ln -sfn \/usr\/bin\/php5.6 \/etc\/alternatives\/php<\/pre>\n<p>Setup with Nginx<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ sudo gedit \/etc\/nginx\/sites-available\/moodle_1917.test\r\n<\/pre>\n<p>Here is the content<\/p>\n<pre class=\"lang:default decode:true \">server {\r\n    listen 80;\r\n    listen [::]:80;\r\n    root \/home\/teddy\/Documents\/works\/moodle1917;\r\n    index  index.php index.html index.htm;\r\n    server_name www.moodle_1917.test moodle_1917.test;\r\n\r\n    error_log \/home\/teddy\/Documents\/works\/moodle1917\/var\/log\/moodle_errors.log; \r\n    access_log \/home\/teddy\/Documents\/works\/moodle1917\/var\/log\/moodle_access.log;\r\n\r\n    location \/ {\r\n        try_files $uri $uri\/ =404;        \r\n    }\r\n \r\n    location \/dataroot\/ {\r\n        internal;\r\n        alias \/home\/teddy\/Documents\/works\/moodle1917data\/;\r\n    }\r\n\r\n    location ~ [^\/]\\.php(\/|$) {\r\n        include snippets\/fastcgi-php.conf;\r\n        fastcgi_pass unix:\/run\/php\/php5.6-fpm.sock;\r\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        include fastcgi_params;\r\n    }\r\n\r\n    gzip on;\r\n    gzip_disable \"msie6\";\r\n\r\n    gzip_comp_level 6;\r\n    gzip_min_length 1100;\r\n    gzip_buffers 16 8k;\r\n    gzip_proxied any;\r\n    gzip_types\r\n    text\/plain\r\n    text\/css\r\n    text\/js\r\n    text\/xml\r\n    text\/javascript\r\n    application\/javascript\r\n    application\/x-javascript\r\n    application\/json\r\n    application\/xml\r\n    application\/xml+rss\r\n    image\/svg+xml;\r\n    gzip_vary on;\r\n}<\/pre>\n<p>NOTE: Pay attention on these lines<\/p>\n<pre class=\"lang:default decode:true \">    location \/dataroot\/ {\r\n        internal;\r\n        alias \/home\/teddy\/Documents\/works\/moodledata\/;\r\n    }<\/pre>\n<p>I HAVE TO PUT THEM THERE. IF NOT, I&#8217;D GET SESSION PROBLEM AND THE STATIC FILES (JS AND CSS) PATH WOULD NOT BE RECOGNIZED<br \/>\nREF: https:\/\/www.sudutbaca.com\/cara-install-moodle-di-debian-9-menggunakan-nginx-mariadb-php7-2-fpm\/<\/p>\n<p>XXXdon&#8217;t forget to create the log file in var\/log\/system.log<br \/>\nThen<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ sudo ln -s \/etc\/nginx\/sites-available\/moodle_1917.test \/etc\/nginx\/sites-enabled\/moodle_1917.test<\/pre>\n<p>Then<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ sudo gedit \/etc\/hosts<\/pre>\n<p>Insert this line:<\/p>\n<pre class=\"lang:default decode:true\">...\r\n127.0.0.1 \tmoodle_1917.test\r\n...<\/pre>\n<p>Then check the nginx config and restart nginx<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/works\/moodle$ sudo nginx -t\r\nnginx: [warn] conflicting server name \"\" on 0.0.0.0:80, ignored\r\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful\r\nteddy@teddy:~\/Documents\/works\/moodle$ sudo service nginx restart<\/pre>\n<p>Set the files owner<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~\/Documents\/works\/moodle1917$ sudo chown www-data:www-data -R .<\/pre>\n<p>Open it on your browser http:\/\/moodle_1917.test. For the first time, it&#8217;ll install Moodle.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Download the latest version from\u00a0https:\/\/download.moodle.org\/ Extract the zip file to your webroot directory Install via your browser\u00a0http:\/\/localhost\/works\/moodle32\/install.php My setting: Web address: http:\/\/localhost\/works\/moodle32 Moodle directory : \/home\/teddy\/Documents\/works\/moodle32 Data directory : \/home\/teddy\/moodledata Make sure the &#8216;Data directory&#8217; can be written! I created the dir &#8216;moodledata&#8217; then set the permission to 777 Select the database &#8216;Improved MySQL\/mysqli) My &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2017\/01\/31\/moodle-3-2-1-installation\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Moodle 3.2.1 Installation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[],"class_list":["post-1575","post","type-post","status-publish","format-standard","hentry","category-moodle"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=1575"}],"version-history":[{"count":20,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1575\/revisions"}],"predecessor-version":[{"id":6612,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/1575\/revisions\/6612"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=1575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=1575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=1575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}