Diferencia entre revisiones de «Guia de instalacion paso-a-paso para Ubuntu 14.04»

De MoodleDocs
m (tidy up (FINAL))
(updated as per English page)
Línea 9: Línea 9:
*Ubuntu Server 14.04LTS tiene algunas pequeñas diferencias con 12.04LTS, principalmente en la configuración de los Sitios de Apache, que ahora reside en /etc/apache2/sites-available/000-default.conf y en ''Webroot'' por defecto, que ahora está en /var/www/html/. Este documento ha sido actualizado para reflejar estos cambios.
*Ubuntu Server 14.04LTS tiene algunas pequeñas diferencias con 12.04LTS, principalmente en la configuración de los Sitios de Apache, que ahora reside en /etc/apache2/sites-available/000-default.conf y en ''Webroot'' por defecto, que ahora está en /var/www/html/. Este documento ha sido actualizado para reflejar estos cambios.


== Paso 2: Instalar Apache/MySQL/PHP ==
== : Instalar Apache/MySQL/PHP ==
Abra Terminal e instale lo siguiente;
Abra Terminal e instale lo siguiente;
 
* :22 en el Video
<pre>sudo apt-get update</pre>
<pre>sudo apt-get update</pre><br />


<pre>sudo apt-get install apache2 mysql-client mysql-server php5</pre>  
<pre>sudo apt-get install apache2 mysql-client mysql-server php5</pre>  
Línea 19: Línea 19:


== Paso 3: Instalar ''software'' adicional==
== Paso 3: Instalar ''software'' adicional==
 
* 1:10 en el video
<pre>sudo apt-get install graphviz aspell php5-pspell php5-curl php5-gd php5-intl php5-mysql php5-xmlrpc php5-ldap</pre>
<pre>sudo apt-get install graphviz aspell php5-pspell php5-curl php5-gd php5-intl php5-mysql php5-xmlrpc php5-ldap clamav</pre>


Reinicie Apache para que los módulos se carguen correctamente
Reinicie Apache para que los módulos se carguen correctamente
Línea 31: Línea 31:


== Paso 4: Descargar Moodle ==
== Paso 4: Descargar Moodle ==
 
* 1:55 en el video
Configure su repositorio local y descargue Moodle. Nosotros usaremos /opt para esta instalación.
Configure su repositorio local y descargue Moodle. Nosotros usaremos /opt para esta instalación.


Línea 47: Línea 47:


== Paso 5: Copiar repositorio local a /var/www/html/ ==
== Paso 5: Copiar repositorio local a /var/www/html/ ==
 
* 3:05en el video
<pre>sudo cp -R /opt/moodle /var/www/html/</pre>
<pre>sudo cp -R /opt/moodle /var/www/html/</pre><br />
<pre>sudo mkdir /var/moodledata</pre>
<pre>sudo mkdir /var/moodledata</pre><br />
<pre>sudo chown -R www-data /var/moodledata</pre>
<pre>sudo chown -R www-data /var/moodledata</pre><br />
<pre>sudo chmod -R 777 /var/moodledata</pre>
<pre>sudo chmod -R 777 /var/moodledata</pre><br />
<pre>sudo chmod -R 0755 /var/www/html/moodle</pre>
<pre>sudo chmod -R 0755 /var/www/html/moodle</pre>


== Paso 6: Configurar servidor MySQL  ==
== Paso 6: Configurar servidor MySQL  ==
 
* 4:45 en el video
Primeramente, necesitamos cambiar el motor de almacenamiento por defecto a '''innodb'''
Primeramente, necesitamos cambiar el motor de almacenamiento por defecto a '''innodb'''


Línea 68: Línea 68:
Para que se guarde my.cnf al usar el editor, perione la tecla Esc (Escape), y escriba lo siguiente en secuencia, lo que lo guardará :w y después cierre el editor :q
Para que se guarde my.cnf al usar el editor, perione la tecla Esc (Escape), y escriba lo siguiente en secuencia, lo que lo guardará :w y después cierre el editor :q


<pre>:w</pre>
<pre>:w</pre><br />
<pre>:q</pre>
<pre>:q</pre>


Línea 77: Línea 77:


Use la contraseña que creó en el paso 1
Use la contraseña que creó en el paso 1
<pre>mysql -u root -p</pre>
<pre>mysql -u root -p</pre><br />
mysql><pre>CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;</pre>
mysql><pre>CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;</pre>


Línea 85: Línea 85:


== Paso 7: Completar Configuración ==
== Paso 7: Completar Configuración ==
 
* 6:40 en el video
*Note - If you are not comfortable using terminal to create the config.php file that needs to be created when going through the installer, you should temporarily make the webroot writable by doing the following:
<pre>sudo chmod -R 777 /var/www/html/moodle</pre>
After you have ran the installer and you have moodle setup, you NEED to revert permissions so that it is no longer writable using the below command.
<pre>sudo chmod -R 0755 /var/www/html/moodle</pre>
Abra su navegador y vaya a http://DIRECCION.IP.DEL.SERVIDOR/moodle  
Abra su navegador y vaya a http://DIRECCION.IP.DEL.SERVIDOR/moodle  


Línea 100: Línea 104:
BasedeDatos (Database): moodle
BasedeDatos (Database): moodle


Usuario (User): moodledude
Usuario (User): moodledude (the user you created when setting up the database)


Contraseña (Password): passwordformoodledude
Contraseña (Password): passwordformoodledude (the password for the user you created)


Tables Prefix: mdl_
Tables Prefix: mdl_
Línea 121: Línea 125:
¡Felicitaciones! ¡Ahora puede empezar a usar Moodle!
¡Felicitaciones! ¡Ahora puede empezar a usar Moodle!


== Rutas del Sistema Después de Instalar==
===Don't Forget===
If you made the webroot writable, revert permissions
<pre>sudo chmod -R 0755 /var/www/html/moodle</pre>


== System Paths After Install==
* 10:05 en el video
Después de instalar Moodle Usted debe configurar las rutas del sistema.
Después de instalar Moodle Usted debe configurar las rutas del sistema.
Navegue a ''Administarción del sitio > Servidor > Rutas del sistema ''
Navegue a ''Administarción del sitio > Servidor > Rutas del sistema ''
Línea 135: Línea 146:
Guarde los cambios
Guarde los cambios


== Sugerencias: Habilitar Zend [[OPcache]]/Cambiar Document Root==
*Optional if you do not already have an AntiVirus Solution
 
We also installed ClamAV in Step 3 so we need to set the path in Moodle
 
1st Create the Quarantine Directory


*Dado que ya hemos instalado Ubuntu Server 14.04LTS, ahora podemos usar PHP [[OPcache]] incluida ,
<pre>sudo mkdir /var/quarantine</pre>
Dentro del enlace [[OPcache]] añada las configuraciones recomendadas a su archivo de 05-opcache.ini file.
   
Change Ownership
<pre>sudo chown -R www-data /var/quarantine</pre>


Navigate to Site Administration > Security > Anti-Virus
Check "Use ClamAV on uploaded files"
ClamAV Path : /usr/bin/clamscan
Quarantine Directory : /var/quarantine
Save Changes
== Suggestions: Enable Zend OpCache/Change Document Root==
* 11:00 en el video
*Since we have installed Ubuntu Server 14.04LTS, we can use the built-in PHP OPcache, https://docs.moodle.org/26/en/OPcache
*Since we have installed Ubuntu Server 14.04LTS, we can use the built-in PHP OPcache, https://docs.moodle.org/26/en/OPcache
<pre>sudo vi /etc/php5/apache2/conf.d/05-opcache.ini</pre>
<pre>sudo vi /etc/php5/apache2/conf.d/05-opcache.ini</pre>


Línea 177: Línea 220:


Editar config.php para Moodle
Editar config.php para Moodle
Bajo $CFG->wwwroot cambie a http://ip.address.of.server/ en lugar de http://ip.address.of.server/moodle
Under $CFG->wwwroot change to http://ip.address.of.server instead of http://ip.address.of.server/moodle
 
 
== Youtube Video==
 
https://www.youtube.com/watch?v=H5vAzBrRxzI
 


[[en:Step-by-step Installation Guide for Ubuntu]]
[[en:Step-by-step Installation Guide for Ubuntu]]

Revisión del 01:15 16 jun 2014

Paso 1: Instalar Ubuntu 14.04LTS


Se prefiere Server Edition amd64 (Edición Servidor de 64bits)

http://www.ubuntu.com/download

  • Ubuntu Server 14.04LTS amd64 tiene todos los paquetes necesarios.
  • Ubuntu Server 14.04LTS tiene algunas pequeñas diferencias con 12.04LTS, principalmente en la configuración de los Sitios de Apache, que ahora reside en /etc/apache2/sites-available/000-default.conf y en Webroot por defecto, que ahora está en /var/www/html/. Este documento ha sido actualizado para reflejar estos cambios.

: Instalar Apache/MySQL/PHP

Abra Terminal e instale lo siguiente;

  • :22 en el Video
sudo apt-get update


sudo apt-get install apache2 mysql-client mysql-server php5

'Se le pedirá que configure la contraseña para root para mysql - apúntela donde no la pierda, porque la necesitará en el paso 6.

Paso 3: Instalar software adicional

  • 1:10 en el video
sudo apt-get install graphviz aspell php5-pspell php5-curl php5-gd php5-intl php5-mysql php5-xmlrpc php5-ldap clamav

Reinicie Apache para que los módulos se carguen correctamente

sudo service apache2 restart

Nosotros usaremos Git para instalar y actualizar la Aplicación del Núcleo de Moodle

sudo apt-get install git-core

Paso 4: Descargar Moodle

  • 1:55 en el video

Configure su repositorio local y descargue Moodle. Nosotros usaremos /opt para esta instalación.

cd /opt

sudo git clone git://git.moodle.org/moodle.git

cd moodle

sudo git branch -a

sudo git branch --track MOODLE_27_STABLE origin/MOODLE_27_STABLE

sudo git checkout MOODLE_27_STABLE

Paso 5: Copiar repositorio local a /var/www/html/

  • 3:05en el video
sudo cp -R /opt/moodle /var/www/html/


sudo mkdir /var/moodledata


sudo chown -R www-data /var/moodledata


sudo chmod -R 777 /var/moodledata


sudo chmod -R 0755 /var/www/html/moodle

Paso 6: Configurar servidor MySQL

  • 4:45 en el video

Primeramente, necesitamos cambiar el motor de almacenamiento por defecto a innodb

  • Usted ya no debería de necesitar hacer que innodb sea su motor de almacenamiento por defecto, la versión más reciente de Moodle la seleccionará automáticamente durante la instalación, aunque siempre es una buena idea volverla la selección por defecto.
sudo vi /etc/mysql/my.cnf

Baje hasta la sección de [mysqld] y en Configuraciones Básicas añada la siguiente línea debajo de la última oración

default-storage-engine = innodb

Para que se guarde my.cnf al usar el editor, perione la tecla Esc (Escape), y escriba lo siguiente en secuencia, lo que lo guardará :w y después cierre el editor :q

:w


:q

Reinicie MySQL Server para que hagan efecto los cambios

sudo service mysql restart

Ahora necesitamos crear al Usuario de Moodle MySQL con los permisos correctos

Use la contraseña que creó en el paso 1

mysql -u root -p


mysql>

CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

En donde diga "moodledude" y "passwordformoodledude" Usted debe de cambiarlos por el nombre_de_usuario y la contraseña de su elección.

mysql>

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,DROP,INDEX,ALTER ON moodle.* TO moodledude@localhost IDENTIFIED BY 'passwordformoodledude';

mysql>

quit;

Paso 7: Completar Configuración

  • 6:40 en el video
  • Note - If you are not comfortable using terminal to create the config.php file that needs to be created when going through the installer, you should temporarily make the webroot writable by doing the following:
sudo chmod -R 777 /var/www/html/moodle

After you have ran the installer and you have moodle setup, you NEED to revert permissions so that it is no longer writable using the below command.

sudo chmod -R 0755 /var/www/html/moodle

Abra su navegador y vaya a http://DIRECCION.IP.DEL.SERVIDOR/moodle

Siga las indicaciones seleccionando:

Tipo de BasedeDatos

Elija: mysqli

Configuraciones de Basededatos

Host server: localhost

BasedeDatos (Database): moodle

Usuario (User): moodledude (the user you created when setting up the database)

Contraseña (Password): passwordformoodledude (the password for the user you created)

Tables Prefix: mdl_

Revisiones del Entorno

Esto indicará si faltan de instalar algunos elementos necesarios para que corra Moodle.

Siguiente siguiente siguiente...

Siga las indicaciones y confirme la instalación

Crear una cuenta del Administrador del Sitio

Cree su cuenta de usuario moodle que tendrá permisos de administrador del sitio.

La contraseña que elija debe de cumplir ciertos requisitos de seguridad.

Instalación Completa

¡Felicitaciones! ¡Ahora puede empezar a usar Moodle!

Don't Forget

If you made the webroot writable, revert permissions

sudo chmod -R 0755 /var/www/html/moodle

System Paths After Install

  • 10:05 en el video

Después de instalar Moodle Usted debe configurar las rutas del sistema. Navegue a Administarción del sitio > Servidor > Rutas del sistema Escriba lo siguiente;

Ruta hacia Du: /usr/bin/du

Ruta hacia Apsell: /usr/bin/aspell

Ruta hacia dot: /usr/bin/dot

Guarde los cambios

  • Optional if you do not already have an AntiVirus Solution


We also installed ClamAV in Step 3 so we need to set the path in Moodle

1st Create the Quarantine Directory

sudo mkdir /var/quarantine

Change Ownership

sudo chown -R www-data /var/quarantine


Navigate to Site Administration > Security > Anti-Virus


Check "Use ClamAV on uploaded files"


ClamAV Path : /usr/bin/clamscan


Quarantine Directory : /var/quarantine


Save Changes


Suggestions: Enable Zend OpCache/Change Document Root

  • 11:00 en el video
sudo vi /etc/php5/apache2/conf.d/05-opcache.ini

Reinicie Apache para que surtan efecto los cambios.

sudo service apache2 restart

Esto es todo lo necesario para Zend OPcache! Usted también podría instalar una Interfaz Gráfica de Usuario (GUI) para ver el estatus de su Zend OPcache, lo que no se recomienda para servidores de producción.

cd /var/www/html/moodle/

Descargue el script de PHP a su directorio de Moodle , Usted debería de añadir también este archivo al archivo /opt/moodle/.git/info/exclude para que no sea eliminado al actualizar su instalación.

sudo wget https://github.com/rlerdorf/opcache-status/blob/master/opcache.php

Visitar http://ip.address.of.server/moodle/opcache.php

¿No le agrada http://direccion.ip.del.servidor/moodle?

Abra la configuración de Apache Config y cambie la raíz para documentos (document root)

sudo vi /etc/apache2/sites-available/000-default.conf

En la línea en donde está la raíz para documentos (DocumentRoot);


Cambie de: DocumentRoot /var/www/html

Cambie a: DocumentRoot /var/www/html/moodle

:w
:q

Reinicie Apache para que surtan efecto los cambios.

sudo service apache2 restart

¡Aviso importante!

Si Usted ya ha instalado Moodle, entonces debe de realizar los cambios siguientes.

Editar config.php para Moodle Under $CFG->wwwroot change to http://ip.address.of.server instead of http://ip.address.of.server/moodle


Youtube Video

https://www.youtube.com/watch?v=H5vAzBrRxzI