Nothing Special   »   [go: up one dir, main page]

0% found this document useful (0 votes)
113 views2 pages

Guia Instalacion Sakai

Download as txt, pdf, or txt
Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1/ 2

DESCARGAR SOFTWARE NECESARIO

APACHE TOMCAT
https://tomcat.apache.org/download-90.cgi

MAVEN
https://maven.apache.org/download.cgi

SAKAI PROYECTO
http://source.sakaiproject.org/release/19.4/

MYSQL CONNECTOR
https://dev.mysql.com/downloads/file/?id=480091

MYSQL
TENGO INSTALADO XAMPP

CONFIGURACIÓN DE VARIABLES
JAVA_HOME
C:\Program Files\Java\jdk1.8.0_111

MAVEN_HOME
C:\sakai\maven

CATALINA_HOME
C:\sakai\tomcat

PATH
C:\Program Files\Java\jdk1.8.0_111\bin
C:\sakai\maven\bin
C:\sakai\tomcat\bin

MAVEN_OPTS
-Xms512m -Xmx1024m -Djava.util.Arrays.useLegacyMergeSort=true

CREACIÓN DE LA BASE DE DATOS

create database sakaidatabase default character set utf8;


grant all on sakaidatabase.* to sakaiuser@'localhost' identified by
'sakaipassword';
grant all on sakaidatabase.* to sakaiuser@'127.0.0.1' identified by
'sakaipassword';
flush privileges;

CONFIGURACIÓN TOMCAT:

1. COPIAR MYSQL CONNECTOR A DIRECTORIO CATALINA_HOME/lib

2. CREAR CARPETA CATALINA_HOME/sakai Y CREAR UN ARCHIVO LLAMADO sakai.properties Y


AGREGAR EL SIGUIENTE CONTENIDO

## MySQL settings
# Replace by whatever username you assigned in the database setup
username@javax.sql.BaseDataSource=sakaiuser
# Replace by whatever password you assigned to the sakaiuser in the database setup
password@javax.sql.BaseDataSource=sakaipassword

# use your sakaidatabase name in the URI that starts


url@javax.sql.BaseDataSource= , below.
vendor@org.sakaiproject.db.api.SqlService=mysql
driverClassName@javax.sql.BaseDataSource=com.mysql.jdbc.Driver
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
url@javax.sql.BaseDataSource=jdbc:mysql://127.0.0.1:3306/sakaidatabase?
useUnicode=true&characterEncoding=UTF-8
validationQuery@javax.sql.BaseDataSource=select 1 from DUAL
defaultTransactionIsolationString@javax.sql.BaseDataSource=TRANSACTION_READ_COMMITT
ED

3. MODIFICAR CATALINA_HOME/conf/context.xml Y AGREGAR DENTRO DE CONTEXT

<JarScanner>
<!-- This is to speedup startup so that tomcat doesn't scan as much -->
<JarScanFilter defaultPluggabilityScan="false" />
</JarScanner>

4. MODIFICAR CATALINA_HOME/conf/server.xml Y AGREGAR DESPUES DE <Connector


port="8080"

URIEncoding="UTF-8"

6. CREAR ARCHIVO setenv.bat DENTRO DE CATALINA_HOME/bin Y AGREGAR EL SIGUIENTE


CONTENIDO:

set JAVA_OPTS=-server -Xmx1028m -XX:MaxMetaspaceSize=512m


-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
-Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dsakai.demo=true

7. IR A LA CARPETA DE CATALINA_HOME/bin Y EJECUTAR startup.bat

You might also like