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

De MoodleDocs
m (tidy up)
m (tidy up)
Línea 3: Línea 3:
== Paso 1: Instalar Ubuntu 14.04LTS==
== Paso 1: Instalar Ubuntu 14.04LTS==


<br>Server Edition amd64 Preferred<br>  
<br>Se prefiere ''Server Edition amd64'' (Edición Servidor de 64bits) <br>  
<br>http://www.ubuntu.com/download<br>
<br>http://www.ubuntu.com/download<br>


*Ubuntu Server 14.04LTS amd64 has all the required packages.
*Ubuntu Server 14.04LTS amd64 tiene todos los paquetes necesarios.


*Ubuntu Server 14.04LTS has some minor differences from 12.04LTS, mainly to the Apache Sites Configuration, now resides at /etc/apache2/sites-available/000-default.conf and the Default Webroot now at /var/www/html/. This document has been updated to reflect those changes.
*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 ==
== Paso 2: Instalar Apache/MySQL/PHP ==
Open up Terminal and install the following;
Abra Terminal e instale lo siguiente;


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


''''It will prompt you to set the root password for mysql - take note of it, you will need it in step 6.'''
''''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==
== Paso 3: Instalar ''software'' adicional==
Línea 23: Línea 23:
<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</pre>


Restart Apache so that the modules are loaded correctly
Reinicie Apache para que los módulos se carguen correctamente


<pre>sudo service apache2 restart</pre>
<pre>sudo service apache2 restart</pre>


We will be using Git to install/update the Moodle Core Application
Nosotros usaremos '''Git''' para nstalar y actualizar la Aplicación del Núcleo de Moodle


<pre>sudo apt-get install git-core</pre>
<pre>sudo apt-get install git-core</pre>
Línea 33: Línea 33:
== Paso 4: Descargar Moodle ==
== Paso 4: Descargar Moodle ==


Setup your local repository and download Moodle, We will use /opt for this installation.
Configure su repositorio local y descargue Moodle. Nosotros usaremos /opt para esta instalación.


<pre>cd /opt
<pre>cd /opt
Línea 55: Línea 55:
<pre>sudo chmod -R 0755 /var/www/html/moodle</pre>
<pre>sudo chmod -R 0755 /var/www/html/moodle</pre>


== Paso 6: Configura servidor MySQL  ==
== Paso 6: Configurar servidor MySQL  ==


First we need to change the default storage engine to innodb
Primeramente, necesitamos cambiar el motor de almacenamiento por defecto a '''innodb'''


*You should not need to make innodb the default storage engine anymore, the latest version of Moodle will select it automatically during install. It is always a good idea to make it default anyway.
*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.


<pre>sudo vi /etc/mysql/my.cnf</pre>
<pre>sudo vi /etc/mysql/my.cnf</pre>


Scroll down to the [mysqld] section and under Basic Settings add the following line under the last statement
Baje hasta la sección de [mysqld] y en Configuraciones Básicas añada la siguiente línea debajo de la púltima oración


<pre>default-storage-engine = innodb</pre>
<pre>default-storage-engine = innodb</pre>


In order to save my.cnf using the editor, press the Esc (Escape) key, type the following in sequence which will save :w then close the 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>
<pre>:q</pre>
<pre>:q</pre>


Restart MySQL Server for changes to take affect
Reinicie MySQL Server para que hagan efecto los cambios


<pre>sudo service mysql restart</pre>
<pre>sudo service mysql restart</pre>
Ahora necesitamos crear al Usuario de Moodle MySQL con los permisos correctos


Now we need to create the Moodle MySQL User with the correct permissions
Use la contraseña que creó en el paso 1
 
Use the password you created in step 1
<pre>mysql -u root -p</pre>
<pre>mysql -u root -p</pre>
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>


Where it says "moodledude" and "passwordformoodledude" you should change to the username and password of your choosing.
En donde diga "moodledude" y "passwordformoodledude" Usted debe de cambiarlos por el nombre_de_usuario y la contraseñade su elección.
mysql><pre>GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,DROP,INDEX,ALTER ON moodle.* TO moodledude@localhost IDENTIFIED BY 'passwordformoodledude';</pre>
mysql><pre>GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,DROP,INDEX,ALTER ON moodle.* TO moodledude@localhost IDENTIFIED BY 'passwordformoodledude';</pre>
mysql><pre>quit;</pre>
mysql><pre>quit;</pre>
Línea 88: Línea 87:
== Paso 7: Completar Configuración ==
== Paso 7: Completar Configuración ==


Open your browser and go to http://IP.ADDRESS.OF.SERVER/moodle  
Abra su navegador y vaya a http://DIRECCION.IP.DEL.SERVIDOR/moodle  


Follow the prompts selecting:
Siga las indicaciones seleccionando:


===Tipo de BasedeDatos===
===Tipo de BasedeDatos===


Choose: mysqli
Elija: mysqli


=== Configuraciones de Basededatos ===
=== Configuraciones de Basededatos ===
Línea 100: Línea 99:
Host server: localhost
Host server: localhost


Database: moodle
BasedeDatos (Database): moodle


User: moodledude
Usuario (User): moodledude


Password: passwordformoodledude
Contraseña (Password): passwordformoodledude


Tables Prefix: mdl_
Tables Prefix: mdl_
Línea 110: Línea 109:
=== Revisiones del [[Entorno]] ===
=== Revisiones del [[Entorno]] ===


This will indicate if any elements required to run moodle haven't been installed.
Esto indicará si faltan de instalar algunos elementos necesarios para que corra Moodle.


=== Siguiente siguiente siguiente... ===
=== Siguiente siguiente siguiente... ===
follow prompts and confirm installation
Siga las indicaciones y confirme la instalación


===Crear una cuenta del Administrador del Sitio ===
===Crear una cuenta del Administrador del Sitio ===
Create your moodle user account which will have site administrator permissions.
Cree su cuenta de usuario moodle que tendrá permisos de administrador del sitio.


The password you select has to meet certain security requirements.
La contraseña que elija debe de cumplir iertos requisitos de seguridad.


===Instalación Completa ===
===Instalación Completa ===
Congrats! You can now start using Moodle!
¡Felicitaciones! ¡Ahora puede empezar a usar Moodle!


== Rutas del Sistema Después de Instalar==
== Rutas del Sistema Después de Instalar==


After installing Moodle you should set the system paths.
Después d einstalar Moodle Usted debe configurar las rutas del sistema.
 
Navegue a ''Administarción del sitio > Servidor > Rutas del sistema ''
Navigate to Site Administration > Server > System Paths
Escriba lo siguiente;
 
Input the following;
 
Path to Du: /usr/bin/du


Path to Apsell: /usr/bin/aspell
Ruta hacia Du: /usr/bin/du


Path to dot: /usr/bin/dot
Ruta hacia Apsell: /usr/bin/aspell
Ruta hacia dot: /usr/bin/dot


Save Changes
Guarde los cambios


== Sugerencias: Habilitar Zend OpCache/Cambiar Document Root==
== Sugerencias: Habilitar Zend OpCache/Cambiar Document Root==
Línea 180: Línea 176:


<pre>sudo service apache2 restart</pre>
<pre>sudo service apache2 restart</pre>
¡Aviso importante!


Important note!
Si Usted ya ha instalado Moodle, entonces debe de relizar los cambios siguientes.
 
If you have already installed Moodle then you should make the below changes.
 
Edit config.php for Moodle


Under $CFG->wwwroot change to http://ip.address.of.server/ instead of http://ip.address.of.server/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


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

Revisión del 18:26 23 may 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.

Paso 2: Instalar Apache/MySQL/PHP

Abra Terminal e instale lo siguiente;

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

sudo apt-get install graphviz aspell php5-pspell php5-curl php5-gd php5-intl php5-mysql php5-xmlrpc php5-ldap

Reinicie Apache para que los módulos se carguen correctamente

sudo service apache2 restart

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

sudo apt-get install git-core

Paso 4: Descargar Moodle

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/

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

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 pú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ñade 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

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

Contraseña (Password): passwordformoodledude

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 iertos requisitos de seguridad.

Instalación Completa

¡Felicitaciones! ¡Ahora puede empezar a usar Moodle!

Rutas del Sistema Después de Instalar

Después d einstalar 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

Sugerencias: Habilitar Zend OpCache/Cambiar Document Root

Within the link above, https://docs.moodle.org/26/en/OPcache add the recommended settings to your 05-opcache.ini file.

sudo vi /etc/php5/apache2/conf.d/05-opcache.ini

Restart Apache for changes to take affect.

sudo service apache2 restart

That's it for the Zend OpCache!

You can also install a GUI to view the status of your Zend OpCache, not recommended on production servers.

cd /var/www/html/moodle/

Download the PHP Script to your Moodle directory, you should also add this file to /opt/moodle/.git/info/exclude file so it does not get removed when upgrading your installation.

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

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

Don't like http://ip.address.of.server/moodle?

Open up Apache Config and change the document root

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

On the line where DocumentRoot is;


Change From: DocumentRoot /var/www/html

Change To: DocumentRoot /var/www/html/moodle

:w
:q

Restart Apache for changes to take affect.

sudo service apache2 restart

¡Aviso importante!

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

Editar config.php para Moodle Bajo $CFG->wwwroot cambie a http://ip.address.of.server/ en lugar de http://ip.address.of.server/moodle