====== Actualizar OTRS 2.4 de Ubuntu 10.04 a OTRS 3.0 ====== === Descargar OTRS y descomprimirlo en ''/opt'' === cd /tmp wget http://ftp.otrs.org/pub/otrs/otrs-3.0.5.tar.gz cd /opt tar xzf /tmp/otrs-*.tar.gz mv otrs-* otrs === Copiar configuración del OTRS2 al OTRS3 === cp /usr/share/otrs/Kernel/Config.pm /opt/otrs/Kernel/ cp /usr/share/otrs/Kernel/Config/GenericAgent.pm /opt/otrs/Kernel/Config/ Y modificar, en ''Config.pm'', la línea que pone: $Self->{Home} = '/usr/share/otrs'; Cambiarlo por: $Self->{Home} = '/opt/otrs'; === Corregir permisos del OTRS3 === cd /opt/otrs bin/otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=www-data --web-user=www-data --web-group=www-data /opt/otrs === Añadir el OTRS3 a Apache y reiniciarlo === cp /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/conf.d/otrs3 rm /etc/apache2/conf.d/otrs2 service apache2 restart === Actualizar la base de datos de OTRS2 a OTRS3 === cd /opt/otrs cat scripts/DBUpdate-to-3.0.mysql.sql | mysql -p -f -u root otrs2 === Cambiar rutas de archivos en /etc/cron.d/otrs === Ahora todos los scripts de la carpeta ''bin'' llevan delante ''otrs.'', por lo que hay que cambiar todas las llamadas que se hagan desde cron. vim /etc/cron.d/otrs Realizar la siguiente sustitución: :%s/$HOME\/bin\//$HOME\/bin\/otrs./ === Desinstalar OTRS2 === Con cuidado al desinstalar dependencias, porque también las necesitaremos en OTRS3. También se comparten archivos de configuración de ''/etc''. apt-get remove otrs2 Cuando pregunte si deseamos desconfigurar la base de datos, responder ''No''. === Tras la instalación === * Hay que volver a establecer los parámetros de configuración de ''SOAP''. ====== Fuentes y enlaces ====== [[http://wiki.otrs.org/index.php?title=Installation_on_Ubuntu_Lucid_Lynx_%2810.4%29]]