

- #HOW TO DOWNLOAD APACHE WEB SERVER ON CENTOS 7 HOW TO#
- #HOW TO DOWNLOAD APACHE WEB SERVER ON CENTOS 7 INSTALL#
- #HOW TO DOWNLOAD APACHE WEB SERVER ON CENTOS 7 DRIVER#
- #HOW TO DOWNLOAD APACHE WEB SERVER ON CENTOS 7 ARCHIVE#
#HOW TO DOWNLOAD APACHE WEB SERVER ON CENTOS 7 DRIVER#
Choose a database driver (improved MySQL or MariaDB).Confirm the website address, Moodle directory, and data directory.Choose a language for the Moodle installation.You can now open a web browser and access the Moodle application at įrom here you can finish the setup by following the steps below: Restart MariaDB service for the changes to take effect service mariadb restart Now we can exit the MariaDB session: mysql> quitĮdit the MariaDB configuration file (/etc/my.cnf.d/server.cnf) and add the following lines: Now we will create a MariaDB database for Moodle using the following query: mysql> CREATE DATABASE moodledb Īdd a separate user for Moodle that will interact with the database: mysql> GRANT ALL PRIVILEGES ON moodledb.* to IDENTIFIED BY '5tr0ng_Pa55w0rd' Įxecute the following command to apply the privileges we set: mysql> FLUSH PRIVILEGES Log into MariaDB with the root account: # mysql -u root -p Save the changes and restart the Apache web server for the changes to take effect: systemctl restart httpd 6. ServerAlias Alias /moodle “/var/www/html/moodle/”ĬustomLog /var/log/httpd/moodle-access_log common Configure Apache to serve MoodleĬreate a new Apache configuration file and add the following contents below to the /etc/httpd/conf.d/nf file using vi or your favorite text editor: # vi /etc/httpd/conf.d/nf This will create a new directory named ‘moodle’ containing the necessary files and directories.Ĭhange the ownership of the /var/www/html/ directory: chown -R apache:apache /var/www/html/ 5.
#HOW TO DOWNLOAD APACHE WEB SERVER ON CENTOS 7 ARCHIVE#
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 and extract the Moodle archive to a directory on the server by executing the following commands: cd /opt You can use the following options: Set root password? Y Run the ‘mysql_secure_installation’ post-installation script provided by MariaDB to strengthen the security of the database server and set a root password. Start the MariaDB service and set it to start on reboot systemctl start mariadb
#HOW TO DOWNLOAD APACHE WEB SERVER ON CENTOS 7 INSTALL#
In order to complete the LAMP installation, install the MariaDB database server using the following command: yum -y install mariadb mariadb-server Accept the key by typing ‘y’ and the package manager will install all necessary PHP extensions.

Install PHP 7.1 and all necessary PHP modules using the following command: 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ĭuring the installation, the yum package manager will prompt you to install the Remi GPG Signing key. To install and enable both EPEL and Remi repositories run the following commands: yum install epel-release PHP version 7.1 is not available in the default CentOS 7 repositories so we will use the Remi repository. Start the Apache web server and enable it to start upon server boot systemctl enable httpd We will start with installing Apache web server yum -y install httpd Once you are logged in to the server run the following command to make sure that all installed packages are up to date yum clean allĪs mention in the requirements section of the tutorial, a LAMP stack (Apache, MySQL/MariaDB, and PHP) is required to run Moodle on the server. Log in to your CentOS 7 VPS via ssh as user root ssh -p Port_number 2.

Web Server: Apache >= 2.0 compiled with mod_rewrite module, or Nginx.In order to run Moodle on your CentOS 7 server, you need the following requirements pre-installed:
#HOW TO DOWNLOAD APACHE WEB SERVER ON CENTOS 7 HOW TO#
It was built to help educators easily create quality online courses. In this article, we will show you how to install Moodle on a CentOS 7. Moodle is a popular open-source learning management system (LMS) written in PHP.
