{"id":28327,"date":"2018-10-02T04:11:52","date_gmt":"2018-10-02T09:11:52","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=28327"},"modified":"2022-12-09T06:52:19","modified_gmt":"2022-12-09T12:52:19","slug":"how-to-install-moodle-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/","title":{"rendered":"How to install Moodle on CentOS 7"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-28422\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7.jpg\" alt=\"How to Install Moodle on CentOS 7\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Moodle is\u00a0a popular open-source learning management system (LMS) written in PHP. It was built to help educators easily create quality online courses.\u00a0In this article, we will show you how to install Moodle on\u00a0a\u00a0<a title=\"Ubuntu VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 7<\/a>.<\/p>\n<p><!--more--><\/p>\n<h3><strong>Moodle Requirements<\/strong><\/h3>\n<p>In order to run Moodle on your CentOS 7 server, you need the following requirements pre-installed:<\/p>\n<ul>\n<li>Web Server: Apache &gt;= 2.0 compiled with mod_rewrite module, or Nginx<\/li>\n<li>PHP &gt;= PHP 7.0 or above is recommended, with the following PHP extensions enabled: intl, Zip,\u00a0XMLRPC, Soap and opcache<\/li>\n<li>MySQL 5.5.31 or later, MariaDB 5.5.31 or later or PostgreSQL 9.3 or later installed on your <a href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\">CentOS virtual server<\/a><\/li>\n<li>CentOS 7 VPS with root access enabled.<\/li>\n<\/ul>\n<h3><strong>1. Login via SSH<\/strong><\/h3>\n<p>Log in to your CentOS 7 VPS via ssh as user root<\/p>\n<pre>ssh roo@IP_Address -p Port_number<\/pre>\n<h3><strong>2. Update all packages<\/strong><\/h3>\n<p>Once you are logged in to the server run the following command to make sure that all installed packages are up to date<\/p>\n<pre>yum clean all\r\nyum update<\/pre>\n<h3><strong>3. Install LAMP stack<\/strong><\/h3>\n<p>As mention in the requirements section of the tutorial, a LAMP stack (Apache, MySQL\/MariaDB, and PHP) is required to run Moodle on the server. We will start with installing Apache web server<\/p>\n<pre>yum -y install httpd<\/pre>\n<p>Start the Apache web server and enable it to start upon server boot<\/p>\n<pre>systemctl enable httpd<\/pre>\n<p>PHP version 7.1 is not available in the default CentOS 7 repositories so we will use the Remi repository.<\/p>\n<p>To install and enable both EPEL and Remi repositories run the following commands:<\/p>\n<pre>yum install epel-release\r\nrpm -Uhv https:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm\r\nyum-config-manager --enable remi-php71<\/pre>\n<p>Install PHP 7.1 and all necessary PHP modules using the following command:<\/p>\n<pre>yum install php php-common php-intl php-zip php-soap php-xmlrpc php-opcache php-mbstring php-gd php-curl php-mysql php-xml<\/pre>\n<p>During the installation, the yum package manager will prompt you to install the Remi GPG Signing key. Accept the key by typing &#8216;y&#8217; and the package manager will install all necessary PHP extensions.<\/p>\n<p>In order to complete the LAMP installation, install the MariaDB database server using the following command:<\/p>\n<pre>yum -y install mariadb mariadb-server<\/pre>\n<p>Start the MariaDB service and set it to start on reboot<\/p>\n<pre>systemctl start mariadb\r\nsystemctl enable mariadb<\/pre>\n<p>Run the &#8216;mysql_secure_installation&#8217; post-installation script provided by MariaDB to strengthen the security of the database server and set a root password. You can use the following options:<\/p>\n<pre>Set root password? [Y\/n] Y\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<h3><strong>4. Install Moodle on CentOS 7<\/strong><\/h3>\n<p>Moodle is not available in the official CentOS 7 repositories, so we will have to download the latest stable version from the official website page at https:\/\/download.moodle.org\/releases\/latest\/ and extract the Moodle archive to a directory on the server by executing the following commands:<\/p>\n<pre>cd \/opt\r\nwget https:\/\/download.moodle.org\/download.php\/direct\/stable35\/moodle-latest-35.tgz -O moodle-latest.tgz\r\ntar -xvzf moodle-latest.tgz\r\nmv \/opt\/moodle\/ \/var\/www\/html\/moodle\/<\/pre>\n<p>This will create a new directory named \u2018moodle\u2019 containing the necessary files and directories.<br \/>\nChange the ownership of the\u00a0\/var\/www\/html\/ directory:<\/p>\n<pre>chown -R apache:apache \/var\/www\/html\/<\/pre>\n<h3>5. Configure Apache to serve Moodle<\/h3>\n<p>Create a new Apache configuration file and add the following contents below to the \/etc\/httpd\/conf.d\/moodle.conf file using vi or your favorite text editor:<\/p>\n<pre># vi \/etc\/httpd\/conf.d\/moodle.conf<\/pre>\n<p>Add the following lines:<\/p>\n<p>&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin admin@your-domain.com<br \/>\nDocumentRoot \/var\/www\/html\/moodle<br \/>\nServerName your-domain.com<br \/>\nServerAlias www.your-domain.com<\/p>\n<p>Alias \/moodle &#8220;\/var\/www\/html\/moodle\/&#8221;<br \/>\n&lt;Directory \/var\/www\/html\/moodle\/&gt;<br \/>\nOptions +FollowSymlinks<br \/>\nAllowOverride All<\/p>\n<p>&lt;\/Directory&gt;<\/p>\n<p>ErrorLog \/var\/log\/httpd\/moodle-error_log<br \/>\nCustomLog \/var\/log\/httpd\/moodle-access_log common<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>Save the changes and restart the Apache web server for the changes to take effect:<\/p>\n<pre>systemctl restart httpd<\/pre>\n<h3>6. Create a MariaDB database for Moodle<\/h3>\n<p>Log into MariaDB with the root account:<\/p>\n<pre># mysql -u root -p<\/pre>\n<p>Now we will create a MariaDB database for Moodle using the following query:<\/p>\n<pre>mysql&gt; CREATE DATABASE moodledb;<\/pre>\n<p>Add a separate user for Moodle that will interact with the database:<\/p>\n<pre>mysql&gt; GRANT ALL PRIVILEGES ON moodledb.* to 'moodle'@'localhost' IDENTIFIED BY '5tr0ng_Pa55w0rd';<\/pre>\n<p>Execute the following command to apply the privileges we set:<\/p>\n<pre>mysql&gt; FLUSH PRIVILEGES;<\/pre>\n<p>Now we can exit the MariaDB session:<\/p>\n<pre>mysql&gt; quit<\/pre>\n<p>Edit the MariaDB configuration file (\/etc\/my.cnf.d\/server.cnf) and add the following lines:<\/p>\n<pre>[client]\r\ndefault-character-set = utf8mb4\r\n\r\n[mysqld]\r\ninnodb_file_format = Barracuda\r\ninnodb_file_per_table = 1\r\ninnodb_large_prefix\r\ncharacter-set-server = utf8mb4\r\ncollation-server = utf8mb4_unicode_ci\r\nskip-character-set-client-handshake\r\n\r\n[mysql]\r\ndefault-character-set = utf8mb4<\/pre>\n<p>Restart MariaDB service for the changes to take effect<\/p>\n<pre>service mariadb restart<\/pre>\n<p>You can now open a web browser and access the Moodle application at http:\/\/your-domain.com<\/p>\n<p>From here you can finish the setup by following the steps below:<\/p>\n<ul>\n<li>Choose a language for the Moodle installation.<\/li>\n<li>Confirm the website address,\u00a0Moodle directory, and\u00a0data directory.<\/li>\n<li>Choose a database driver (improved MySQL or MariaDB).<\/li>\n<li>Enter the database settings: localhost or 127.0.0.1 as database host, then enter a database name, username, password, database port (3306), and once you have filled in the form, click Next.<\/li>\n<li>Edit the\u00a0\/var\/www\/html\/moodle\/config.php configuration file and replace &#8216;mysqli&#8217; with &#8216;mariadb&#8217;.<\/li>\n<li>Moodle will check to make sure that your server meets the Moodle requirements. If everything is OK, click Next.<\/li>\n<li>Enter a username, password and email address for the administrator user account.<\/li>\n<li>Complete registration with Moodle.net.moodle<\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-28419\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Install-Moodle-on-CentOS-7.jpg\" alt=\"Install Moodle on CentOS 7\" width=\"650\" height=\"390\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Install-Moodle-on-CentOS-7.jpg 650w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Install-Moodle-on-CentOS-7-150x90.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Install-Moodle-on-CentOS-7-300x180.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Install-Moodle-on-CentOS-7-627x376.jpg 627w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Install-Moodle-on-CentOS-7-440x264.jpg 440w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>That&#8217;s it, now you should have successfully installed Moodle on your CentOS 7 server.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-28418\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/Installing-Moodle-on-CentOS-7.jpg\" alt=\"Installing Moodle on CentOS 7\" width=\"150\" height=\"103\" \/>Of course, you don\u2019t have to install and configure Moodle on CentOS 7, if you use one of our\u00a0<a href=\"https:\/\/www.rosehosting.com\/moodle-hosting.html\">Managed Moodle Hosting<\/a> solutions, in which case you can simply ask our expert Linux admins to install and configure Moodle on CentOS for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post on how to install and configure Moodle on a CentOS VPS, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Moodle is\u00a0a popular open-source learning management system (LMS) written in PHP. It was built to help educators easily create quality &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to install Moodle on CentOS 7\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#more-28327\" aria-label=\"Read more about How to install Moodle on CentOS 7\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28422,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,13],"tags":[541,179],"class_list":["post-28327","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-tutorials","tag-centos-7","tag-moodle","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to install Moodle on CentOS 7 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to install Moodle on CentOS 7 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/\" \/>\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 CentOS 7\" \/>\n<meta property=\"og:description\" content=\"How to install Moodle on CentOS 7 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-02T09:11:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-09T12:52:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to install Moodle on CentOS 7\",\"datePublished\":\"2018-10-02T09:11:52+00:00\",\"dateModified\":\"2022-12-09T12:52:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/\"},\"wordCount\":832,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-install-Moodle-on-CentOS-7.jpg\",\"keywords\":[\"centos 7\",\"moodle\"],\"articleSection\":[\"CentOS\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/\",\"name\":\"How to install Moodle on CentOS 7 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-install-Moodle-on-CentOS-7.jpg\",\"datePublished\":\"2018-10-02T09:11:52+00:00\",\"dateModified\":\"2022-12-09T12:52:19+00:00\",\"description\":\"How to install Moodle on CentOS 7 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-install-Moodle-on-CentOS-7.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/How-to-install-Moodle-on-CentOS-7.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install Moodle on CentOS 7\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-moodle-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Moodle on CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to install Moodle on CentOS 7 | RoseHosting","description":"How to install Moodle on CentOS 7 | RoseHosting","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:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"How to install Moodle on CentOS 7","og_description":"How to install Moodle on CentOS 7 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-10-02T09:11:52+00:00","article_modified_time":"2022-12-09T12:52:19+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to install Moodle on CentOS 7","datePublished":"2018-10-02T09:11:52+00:00","dateModified":"2022-12-09T12:52:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/"},"wordCount":832,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7.jpg","keywords":["centos 7","moodle"],"articleSection":["CentOS","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/","name":"How to install Moodle on CentOS 7 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7.jpg","datePublished":"2018-10-02T09:11:52+00:00","dateModified":"2022-12-09T12:52:19+00:00","description":"How to install Moodle on CentOS 7 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/How-to-install-Moodle-on-CentOS-7.jpg","width":742,"height":372,"caption":"How to Install Moodle on CentOS 7"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-moodle-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install Moodle on CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=28327"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28327\/revisions"}],"predecessor-version":[{"id":43971,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/28327\/revisions\/43971"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/28422"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=28327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=28327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=28327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}