Skip to content

Latest commit

 

History

History
105 lines (69 loc) · 2.95 KB

File metadata and controls

105 lines (69 loc) · 2.95 KB

Parameters

The Moodle deployment package contains a sequence software (referred to as "components") required for Moodle to run. The important information such as the component name, installation directory path, configuration file path, port, version, etc. are listed below.

Path

Moodle

Moodle installation directory: /data/wwwroot/moodle
Moodle configuration file: /data/wwwroot/moodle/config.php

PHP

PHP configuration file: /etc/php.ini
PHP Modules configurations directory: /etc/php.d

Apache

Moodle on LAMP, the Web Server is Apache

Apache vhost configuration file: /etc/httpd/conf.d/vhost.conf
Apache main configuration file: /etc/httpd/conf/httpd.conf
Apache logs file: /var/log/httpd
Apache module configuration file: /etc/httpd/conf.modules.d/00-base.conf

Nginx

Moodle on LEMP, the Web Server is Nginx

Nginx vhost configuration file: /etc/nginx/sites-available/default.conf
Nginx main configuration file: /etc/nginx/nginx.conf
Nginx logs file: /var/log/nginx/

MYSQL

MySQL installation directory: /usr/local/mysql
MySQL data directory: /data/mysql
MySQL configuration file: /etc/my.cnf
MySQL Web Management URL: http://Internet IP/phpmyadmin, get credential

phpMyAdmin

phpMyAdmin installation directory: /data/apps/phpmyadmin
phpMyAdmin configuration file: /data/apps/phpmyadmin/config.inc.php
phpMyAdmin vhost configuration file: /etc/httpd/conf.d/phpMyAdmin.conf or /etc/nginx/php.conf

Redis

Redis configuration file: /etc/redis.conf
Redis data directory: /var/lib/redis
Redis logs file: /var/log/redis/redis.log

Ports

Open or close ports by Security Group Setting of your Cloud Server to decide whether the port can be accessed from Internet.

You can run the cmd netstat -tunlp to check all related ports.

The following are the ports you may use:

Name Number Use Necessity
MySQL 3306 Remote connect MySQL Optional
HTTP 80 HTTP requests for Moodle Required
HTTPS 443 HTTPS requests Moodle Optional
phpMyAdmin on Docker 9090 Web managment GUI for MySQL Optional

Version

You can see the version from product page of Marketplace. However, after being deployed to your server, the components will be automatically updated, resulting in a certain change in the version number. Therefore, the exact version number should be viewed by running the command on the server:

# Check all components version
sudo cat /data/logs/install_version.txt

# Linux Version
lsb_release -a

# PHP Version
php -v

# List Installed PHP Modules
php -m

# Apache version on Centos
httpd -v

# Apache version on Ubuntu
apache2 -v

# List Installed Apache Modules
apachectl -M

# Nginx version
nginx -v

# List Installed Nginx Modules
nginx -V

# MySQL version:
mysql -V

# Redis version
redis-server -v