Recuerda que puedes sugerir contenido :)
Como instalar la plataforma Moodle en Server Ubuntu o Debian - 2021

Como instalar la plataforma Moodle en Server Ubuntu o Debian - 2021

Autor: n1g1channel | 2021-05-18 22:52

Aprende a Instalar Moodle Fácil explicado paso a paso. Aprende a desarrollar Aulas Virtuales en Moodle!

En este video les enseñare a configurar la plataforma educativa open source Moodle haciendo uso de un servidor VPS.

Codigo:

sudo apt update
sudo apt install apache2
sudo apt install php libapache2-mod-php
sudo apt install php-mysql php-gd
sudo apt-get install mysql-server
mysql_secure_installation
sudo service apache2 restart
 
mysql -u root -p
             Usuario               Contraseña
CREATE USER 'usuario'@'localhost' IDENTIFIED BY 'contraseña';
                                 Usuario
GRANT ALL PRIVILEGES ON * . * TO 'usuario'@'localhost';
FLUSH PRIVILEGES;
 
php -v
 
PHP 7.4: sudo apt-get install php7.4-curl
PHP 7.3: sudo apt-get install php7.3-curl
PHP 7.2: sudo apt-get install php7.2-curl
PHP 7.1: sudo apt-get install php7.1-curl
PHP 7.0: sudo apt-get install php7.0-curl
PHP 5.6: sudo apt-get install php5.6-curl
PHP 5.5: sudo apt-get install php5.5-curl
 
sudo apt-get install php-zip
 
Corrección
sudo /etc/init.d/apache2 restart
 
 
sudo apt install php-xml
sudo apt-get install php-intl
sudo  apt-get install php-mbstring
sudo service apache2 restart
 
//Agregar HTTPS
https://certbot.eff.org/lets-encrypt/ubuntufocal-apache
 
//Ruta a modificar para que funcione HTTPS
cd /etc/apache2/sites-available/
nano 000-default.conf
sudo service apache2 restart
 
//Les tiene que quedar similar a esto
 
<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port t>
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com
        ServerName n1g1.duckdns.org
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
 
 
        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn
 
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
 
        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
        RewriteEngine on
        RewriteCond %{SERVER_NAME} =n1g1.duckdns.org
        RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>