![]() Update the Apache configuration file located at /etc/apache2/sites-available/nf with port 443 section. Renew SSL certificates using Certbot on Ubuntu snap install certbot -classicĬertbot certonly -webroot -w /var/www/html -d DOAMIN.COM Skip this if you have your own certificates from another vendor. We will install Certbot via snap to get a free Let’s Encrypt SSL. ĮrrorLog /var/log/apache2/moodle_error.log chown -R www-data:www-data /var/www/htmlĬhown -R www-data:www-data /var/www/moodledata 5- Create Apache virtual host cd /etc/apache2/sites-available/Ĭopy and paste the following content into the configuration file. Modify the ownership and group of the web server root and moodle data directory. unzip moodle-latest-402.zipĬreate a Moodle data directory outside of the web root in /var/www. ![]() cd /var/Please check the releases page for any other available versions.Įxtract and move it to the root directory of your web server. Navigate to the www directory to continue. Grant all on moodle.* to identified by ' PASSWORD' mysqlĬreate database moodle CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci Now, log in to the database server and create the moodle database. Let’s run it to perform the initial setup. Ubuntu come pre-installed with mysql_secure_installation. Opcache.enable_file_override = 0 systemctl restart php8.1-fpm 3- Database creation Other options, such as upload_max_filesize depend on your specific needs.Ĭheck PHP timezone manual for your timezone. Some of these settings are required, so it’s important to configure them. Systemctl enable mariadb 2- Update php configuration a2enmod ssl rewrite headers proxy proxy_http deflate cache proxy_wstunnel http2 proxy_fcgi env expires systemctl restart apache2Įnable Apache, MariaDB and PHP-FPM at boot time. a2enconf php8.1-fpmĮnable some Apache modules. apt install apache2 mariadb-server libapache2-mod-php php php-gmp php-bcmath php-gd php-json php-mysql php-curl php-mbstring php-intl php-imagick php-xml php-zip php-fpm php-redis php-apcu php-opcache php-ldap php-soap bzip2 zip unzip imagemagick vim ffmpeg libsodium23Īfter the installation has completed, enable PHP 8.1 FPM and its Apache configuration. In this article, I am going to guide you step by step on how to install Moodle on Ubuntu 22.04 LTS from scratch.Īpt autoremove & apt autoclean ufw default allow outgoing It has comprehensive modules for students and teachers, as well as plugins to install that provide the extra functionality you need for your system. Moodle is one of the popular software used for education and online course systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |