Este sitio web usa cookies, puedes ver la polĂ­tica de cookies, aquĂ­
PolĂ­tica de cookies +
Comandos Utilizados para Instalar Moodle

Comandos Utilizados para Instalar Moodle

Dejo los comandos utilizados en el video anterior para puedas realizar el video con más facilidad. Recuerda que debes seguir el orden del video, el cual lo puedes encontrar en el curso.

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>

Regresar al curso

Contenidos del bloque de: InstalaciĂłn

Crear un Aula Virtual en MOODLE GRATIS Como instalar la plataforma Moodle en Server Ubuntu/Debian Comandos Utilizados para Instalar Moodle Examen sobre Moodle