Eventum

De 33system wiki
Saltar a: navegación, buscar

<< Informatica

Eventum

Teoría

Práctica

# Instala los paquetes: 
apt-get install apache2 libapache2-mod-php5 php5-gd mysql-server-5.0 php5-mysql
    
# Descarga el programa eventum
cd /tmp
wget http://mirrors.ukfast.co.uk/sites/ftp.mysql.com/Downloads/eventum/eventum-2.2.tar.gz

# Se descomprime en /usr/share
cd /usr/share
tar -xvzf /tmp/eventum-2.2.tar.gz

# Da permisos
chown -R root:root /usr/share/eventum-2.2
chmod -R go-w /usr/share/eventum-2.2

# Movemos logs 
mv /usr/share/eventum-2.2/logs /var/log/eventum

# Aplicamos permisos
chmod 100 /var/log/eventum/login_attempts.log

# Creamos directorio
mkdir /etc/eventum
mkdir -p /var/lib/eventum/locks /var/lib/eventum/templates_c
    
# Cambiamos permisos
chown www-data -R /var/log/eventum /etc/eventum /var/lib/eventum/locks /var/lib/eventum/templates_c

#Borramos directorios
rmdir /usr/share/eventum-2.2/config /usr/share/eventum-2.2/locks /usr/share/eventum-2.2/templates_c

# Creamos enlaces
ln -sf /var/log/eventum /usr/share/eventum-2.2/logs
ln -sf /etc/eventum /usr/share/eventum-2.2/config
ln -sf /var/lib/eventum/locks /usr/share/eventum-2.2/locks
ln -sf /var/lib/eventum/templates_c /usr/share/eventum-2.2/templates_c

# Iniciamos apache
# con esto (in /etc/apache2/conf.d/eventum):
# Alias /eventum /usr/share/eventum 
cd /etc/apache2/conf.d
vim eventum
---------------------------------------
Alias /eventum /usr/share/eventum-2.2
---------------------------------------

# Reiniciamos apache
/etc/init.d/apache2 restart

# En mysql creamos la base de datos dando permisos a eventum@localhost
mysql -u root -proot
CREATE DATABASE eventum;
GRANT ALL PRIVILEGES ON eventum.* TO eventum@localhost IDENTIFIED BY 'eventum'; 
quit;

# Visitamos http://192.168.0./eventum
        servername = 192.168.0.52
        relative url = /eventum/
        mysql server = localhost
        mysql database = eventum (do not tick)
        mysql table_prefix = (blank)
        username = eventum
        password = ....
        we did not set another user for normal use 		(which would probably only need select,update,insert,delete permissions)
        email sender = eventum@example.com
        email hostname = localhost
        email port = 25 

# click siguiente
# logueate usando admin@example.com (no matter what you used earlier) con contraseña de "admin" 

####
# Editamos el archivo 
vim /etc/locale.gen
# descomentamos las lineas correspondientes al idioma deseado

# Activate all the locales you need and then run:
locale-gen
####

Documentacion