{"id":966,"date":"2019-11-13T10:43:21","date_gmt":"2019-11-13T16:43:21","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=966"},"modified":"2019-11-13T10:43:21","modified_gmt":"2019-11-13T16:43:21","slug":"how-to-install-moodle-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/","title":{"rendered":"How to Install Moodle on Ubuntu 18.04"},"content":{"rendered":"<div id=\"linux-3490812263\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>In this tutorial, we will be installing Moodle on an Ubuntu 18.04 server.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-978\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/setting-up-moodle-education-platform-for-ubuntu18.04-vps.jpg\" alt=\"\" width=\"150\" height=\"38\" \/>Moodle is a well-known open-source learning management system written in PHP. With its customizable features, people all over the world are using Moodle to create websites to run and manage their online courses. Moodle enables us to conduct face-to-face online learning and training, as well as grading and testing. We can create assignments, quizzes, homework, and so on.<\/p>\n<p>Moodle was originally released in 2002 and has been translated to over 100 languages ever since, making it accessible to as many students and teachers as possible. The installation process shouldn&#8217;t take much time, so let&#8217;s get started.<!--more--><\/p>\n<p><strong>Moodle comes with a lot of useful features, such as:<\/strong><\/p>\n<ul>\n<li>A modern and easy-to-use interface<\/li>\n<li>Personalized Dashboard<\/li>\n<li>Collaborative tools and activities<\/li>\n<li>All-in-one calendar<\/li>\n<li>Simple text editor<\/li>\n<li>Track progress<\/li>\n<li>Notifications<\/li>\n<li>and lots more\u2026<\/li>\n<\/ul>\n<h2>Prerequisites:<\/h2>\n<ul>\n<li>Ubuntu 18.04<\/li>\n<li>Apache\/Nginx for the web server<\/li>\n<li>PHP 7.0 or newer for Moodle itself<\/li>\n<li>MySQL\/MariaDB for the database server<\/li>\n<\/ul>\n<h2>Step 1. Log in via SSH and Update the System<\/h2>\n<p>Log in to your Ubuntu 18.04 VPS with SSH as the root user (or as an account with sudo privileges)<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_Address<\/span> -p <span style=\"color: #ff0000;\">Port_number<\/span><\/pre>\n<p>You can check whether you have the proper Ubuntu version installed on your server with the following command:<\/p>\n<pre># lsb_release -a<\/pre>\n<p>You should get this output:<\/p>\n<pre>Distributor ID: Ubuntu\r\nDescription: Ubuntu 18.04.1 LTS\r\nRelease: 18.04\r\nCodename: bionic<\/pre>\n<p>Then, run the following command to make sure that all installed packages on the server are updated to the latest available version:<\/p>\n<pre># apt update &amp;&amp; apt upgrade<\/pre>\n<h2>Step 2. Install a Web Server<\/h2>\n<p>In this tutorial, we will go over installing both of the most popular web server platforms available. Apache is more user-friendly, while Nginx is more customizable.<\/p>\n<p>Both will do the job just fine, so you are free to pick either one. Make sure to not install both web servers.<\/p>\n<h3>Installing Apache<\/h3>\n<p>Run the following command to install Apache and other dependencies needed to proceed with the Moodle installation:<\/p>\n<pre># apt install apache2 libapache2-mod-php mysql-server php-mysql php-gd php-intl php-xmlrpc php-soap php-cli php-zip php-mbstring php-curl php-xml php-pear php-bcmath php-fpm<\/pre>\n<p>Then, we need to enable the rewrite module in Apache.<\/p>\n<pre># a2enmod rewrite\r\n# systemctl restart apache2<\/pre>\n<h3>Create an Apache virtual host<\/h3>\n<p>Make sure to replace &#8220;<span style=\"color: #ff0000;\">yourdomain.com<\/span>&#8221; with your registered domain name. Create a new file using a text editor of your choice:<\/p>\n<pre># nano \/etc\/apache2\/sites-available\/<span style=\"color: #ff0000;\">yourdomain.com<\/span>.conf<\/pre>\n<p>Then enter the following content:<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\nDocumentRoot \/var\/www\/html\/moodle\/\r\nServerName <span style=\"color: #ff0000;\">yourdomain.com<\/span>\r\nServerAlias www.<span style=\"color: #ff0000;\">yourdomain.com<\/span>\r\nServerAdmin admin@<span style=\"color: #ff0000;\">yourdomain.com<\/span>\r\n\r\n&lt;Directory \/var\/www\/html\/moodle\/&gt;\r\nOptions +FollowSymlinks\r\nAllowOverride All\r\nRequire all granted\r\n&lt;\/Directory&gt;\r\n\r\nErrorLog \/var\/log\/apache2\/<span style=\"color: #ff0000;\">yourdomain.com<\/span>-error.log\r\nCustomLog \/var\/log\/apache2\/<span style=\"color: #ff0000;\">yourdomain.com<\/span>-access.log combined\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>Save and close the file, then run the following to enable the configuration that we just created.<\/p>\n<pre># a2ensite <span style=\"color: #ff0000;\">yourdomain.com<\/span><\/pre>\n<p>Then restart Apache:<\/p>\n<pre># systemctl restart apache2<\/pre>\n<h3>Nginx<\/h3>\n<p>If you prefer Nginx to Apache, you can skip the section above and invoke the following instead:<\/p>\n<pre>apt install nginx mysql-server php-mysql php-gd php-intl php-xmlrpc php-soap php-cli php-zip php-mbstring php-curl php-xml php-pear php-bcmath php-fpm<\/pre>\n<p>Then, let&#8217;s create an Nginx server block.<\/p>\n<pre># nano \/etc\/nginx\/sites-available\/<span style=\"color: #ff0000;\">yourdomain.com<\/span>.conf<\/pre>\n<pre>server {\r\n    listen 80;\r\n    root \/var\/www\/html\/moodle;\r\n    index index.php index.html index.htm;\r\n    server_name <span style=\"color: #ff0000;\">yourdomain.com<\/span> www.<span style=\"color: #ff0000;\">yourdomain.com<\/span>;\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 \/var\/www\/html\/moodledata\/;\r\n    }\r\n\r\n    location ~ [^\/]\\.php(\/|$) {\r\n        include snippets\/fastcgi-php.conf;\r\n        fastcgi_pass unix:\/var\/run\/php\/php7.2-fpm.sock;\r\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n        include fastcgi_params;\r\n    }\r\n}<\/pre>\n<p>Save the file then exit.<\/p>\n<p>The server block is not enabled yet, we can enable it by running this command:<\/p>\n<pre># ln -s \/etc\/nginx\/sites-available\/<span style=\"color: #ff0000;\">yourdomain.com<\/span>.conf \/etc\/nginx\/sites-enabled\/<\/pre>\n<p>Then, restart nginx<\/p>\n<pre># systemctl restart nginx<\/pre>\n<h2>Step 3. Create database<\/h2>\n<p>We are going to use MySQL, and we installed MySQL server in the very first step of this tutorial<\/p>\n<p>Now, you can skip the following step if you prefer not to have a MySQL root password.<\/p>\n<pre># mysql_secure_installation<\/pre>\n<p>When prompted, answer the questions below by following the guide.<\/p>\n<pre>Enter current password for root (enter for none): Just press the [Enter] key, as no password is set by default\r\nSet root password? [Y\/n]: Y\r\nNew password: Enter password\r\nRe-enter new password: Repeat password\r\nRemove anonymous users? [Y\/n]: Y\r\nDisallow root login remotely? [Y\/n]: Y\r\nRemove test database and access to it? [Y\/n]: Y\r\nReload privilege tables now? [Y\/n]: Y<\/pre>\n<p>If you followed the above step, then you would have a password for MySQL root user, so you can run this command to access the MySQL shell.<\/p>\n<pre># mysql -u root -p<\/pre>\n<p>Let\u2019s proceed with creating a database for Moodle<\/p>\n<pre>mysql&gt; create database moodle;\r\nQuery OK, 1 row affected (0.00 sec)\r\n\r\nmysql&gt; grant all on moodle.* to moodle@localhost identified by '<span style=\"color: #ff0000;\">m0d1fyth15<\/span>';\r\nQuery OK, 0 rows affected, 1 warning (0.00 sec)\r\n\r\nmysql&gt; flush privileges;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nmysql&gt; quit\r\n<\/pre>\n<p>Please change the password &#8216;<span style=\"color: #ff0000;\">m0d1fyth15<\/span>&#8216; above to your desired one.<\/p>\n<h2>Step 4. Install Moodle<\/h2>\n<p>Before installing Moodle, we will download the latest stable version (at the time of writing this article) from Moodle&#8217;s official download page. You can check for the latest version at https:\/\/download.moodle.org\/releases\/latest\/ .<\/p>\n<pre># wget https:\/\/download.moodle.org\/download.php\/direct\/stable36\/moodle-3.6.2.tgz<\/pre>\n<p>Once downloaded, run the following command to extract the downloaded file.<\/p>\n<pre># tar -xvf moodle-3.6.2.tgz<\/pre>\n<p>Modify the directory permission and restart apache.<\/p>\n<pre># chown -R www-data: \/var\/www\/html\/moodle\/\r\n\r\nsystemctl restart apache2<\/pre>\n<p>Finally, go to the domain\u00a0<span style=\"color: #ff0000;\">http:\/\/yourdomain.com<\/span> to complete the Moodle installation.<\/p>\n<figure id=\"attachment_967\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 930px\"><img decoding=\"async\" class=\"size-full wp-image-967\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_choose_language.png\" alt=\"\" width=\"920\" height=\"282\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_choose_language.png 920w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_choose_language-300x92.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_choose_language-768x235.png 768w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><figcaption class=\"caption wp-caption-text\">Choosing a Language for Moodle<\/figcaption><\/figure>\n<p>Click on the &#8216;Next&#8217; button to continue.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-968\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_confirm_path.png\" alt=\"\" width=\"970\" height=\"320\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_confirm_path.png 970w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_confirm_path-300x99.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_confirm_path-768x253.png 768w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Modify the data directory, make sure the webserver has proper permission to access it, then click &#8216;Next&#8217;<\/p>\n<figure id=\"attachment_969\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 877px\"><img decoding=\"async\" class=\"size-full wp-image-969\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_choose_dbdriver.png\" alt=\"\" width=\"867\" height=\"349\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_choose_dbdriver.png 867w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_choose_dbdriver-300x121.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_choose_dbdriver-768x309.png 768w\" sizes=\"(max-width: 867px) 100vw, 867px\" \/><figcaption class=\"caption wp-caption-text\">Choosing Database Driver for Moodle<\/figcaption><\/figure>\n<p>There are several options, but this time we are going to choose MySQL, click on &#8216;Next&#8217; button to continue.<\/p>\n<figure id=\"attachment_970\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 730px\"><img decoding=\"async\" class=\"size-full wp-image-970\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_db_setting.png\" alt=\"\" width=\"720\" height=\"622\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_db_setting.png 720w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_db_setting-300x259.png 300w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><figcaption class=\"caption wp-caption-text\">Setting the Database Settings for Moodle<\/figcaption><\/figure>\n<p>In this step, make sure you are filling the database information that you created earlier, you can leave the database port and Unix socket blank, click on &#8216;Next&#8217; button to continue.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-971\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_copyright_notice.png\" alt=\"\" width=\"468\" height=\"291\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_copyright_notice.png 468w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_copyright_notice-300x187.png 300w\" sizes=\"(max-width: 468px) 100vw, 468px\" \/><\/p>\n<figure id=\"attachment_972\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 958px\"><img decoding=\"async\" class=\"size-full wp-image-972\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_server_check.png\" alt=\"\" width=\"948\" height=\"115\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_server_check.png 948w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_server_check-300x36.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_server_check-768x93.png 768w\" sizes=\"(max-width: 948px) 100vw, 948px\" \/><figcaption class=\"caption wp-caption-text\">Confirming Server Requirements are Met<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-973\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/installation_finished-1024x282.png\" alt=\"\" width=\"1024\" height=\"282\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/installation_finished-1024x282.png 1024w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/installation_finished-1024x282-300x83.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/installation_finished-1024x282-768x212.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>You will see success messages &#8211; click on the &#8216;Continue&#8217; button to proceed.<\/p>\n<figure id=\"attachment_974\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 970px\"><img decoding=\"async\" class=\"size-full wp-image-974\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/installation_finished2.png\" alt=\"\" width=\"960\" height=\"528\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/installation_finished2.png 960w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/installation_finished2-300x165.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/installation_finished2-768x422.png 768w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><figcaption class=\"caption wp-caption-text\">Creating an Admin Account<\/figcaption><\/figure>\n<p>Complete all the required fields above then finish the installation.<\/p>\n<p>Once installation is finished, click on continue to create the main administrator account. Then , click on update profile button.<br \/>\nNow, we need to configure the front page option.<\/p>\n<figure id=\"attachment_975\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 957px\"><img decoding=\"async\" class=\"wp-image-975 size-full\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_frontpage_setting.png\" alt=\"\" width=\"947\" height=\"609\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_frontpage_setting.png 947w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_frontpage_setting-300x193.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/moodle_frontpage_setting-768x494.png 768w\" sizes=\"(max-width: 947px) 100vw, 947px\" \/><figcaption class=\"caption wp-caption-text\">Creating the Front Page<\/figcaption><\/figure>\n<p>Congratulations! At this point Moodle has been successfully installed, and you can access it at http:\/\/<span style=\"color: #ff0000;\">yourdomain.com<\/span>. For more information about Moodle, its features and configuration, please check their official documentation.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-979\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/support-help-with-install-and-maintaining-moodle-from-expert-admins-for-ubuntu18.04-server.jpg\" alt=\"\" width=\"150\" height=\"38\" \/>Of course, you don\u2019t have to know how to install Moodle on Ubuntu 18.04 if you use one of our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\">Managed VPS Support and Management<\/a> services with us. You can simply ask our support team to install Moodle on an Ubuntu 18.04 server for you. They are available 24\/7, and will be able to help you with the installation of Moodle on Ubuntu 18.04 at any time.<\/p>\n<p><span style=\"color: #ff0000;\">PS.<\/span> If you enjoy reading this blog post on <strong>how to install Moodle on Ubuntu 18.04<\/strong>, feel free to share it on social networks using the share shortcuts, or simply leave a comment. Thank you.<\/p><div id=\"linux-915926679\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will be installing Moodle on an Ubuntu 18.04 server. Moodle is a well-known open-source learning management system written in PHP. With its customizable features, people all over the world are using Moodle to create websites to run and manage their online courses. Moodle enables us to conduct face-to-face online learning and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":977,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-966","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Moodle on Ubuntu 18.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will be installing Moodle on an Ubuntu 18.04 server. Moodle is a well-known open-source learning management system written in PHP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Moodle on Ubuntu 18.04 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will be installing Moodle on an Ubuntu 18.04 server. Moodle is a well-known open-source learning management system written in PHP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-13T16:43:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/how-to-install-moodle-on-ubuntu18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Moodle on Ubuntu 18.04\",\"datePublished\":\"2019-11-13T16:43:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/\"},\"wordCount\":919,\"commentCount\":4,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/how-to-install-moodle-on-ubuntu18.04.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Moodle on Ubuntu 18.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/how-to-install-moodle-on-ubuntu18.04.jpg\",\"datePublished\":\"2019-11-13T16:43:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this tutorial, we will be installing Moodle on an Ubuntu 18.04 server. Moodle is a well-known open-source learning management system written in PHP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/how-to-install-moodle-on-ubuntu18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/how-to-install-moodle-on-ubuntu18.04.jpg\",\"width\":750,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-moodle-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Moodle on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Moodle on Ubuntu 18.04 | LinuxHostSupport","description":"In this tutorial, we will be installing Moodle on an Ubuntu 18.04 server. Moodle is a well-known open-source learning management system written in PHP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Moodle on Ubuntu 18.04 | LinuxHostSupport","og_description":"In this tutorial, we will be installing Moodle on an Ubuntu 18.04 server. Moodle is a well-known open-source learning management system written in PHP.","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-11-13T16:43:21+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/how-to-install-moodle-on-ubuntu18.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Moodle on Ubuntu 18.04","datePublished":"2019-11-13T16:43:21+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/"},"wordCount":919,"commentCount":4,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/how-to-install-moodle-on-ubuntu18.04.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/","name":"How to Install Moodle on Ubuntu 18.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/how-to-install-moodle-on-ubuntu18.04.jpg","datePublished":"2019-11-13T16:43:21+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this tutorial, we will be installing Moodle on an Ubuntu 18.04 server. Moodle is a well-known open-source learning management system written in PHP.","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/how-to-install-moodle-on-ubuntu18.04.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/11\/how-to-install-moodle-on-ubuntu18.04.jpg","width":750,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-moodle-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Moodle on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=966"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/966\/revisions"}],"predecessor-version":[{"id":984,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/966\/revisions\/984"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/977"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}