Happy upgrade sharing

Moderator: crythias

Locked
vinc535
Znuny newbie
Posts: 13
Joined: 02 May 2013, 11:32
Znuny Version: 5.0.6
Real Name: Vincent
Company: N/A

Happy upgrade sharing

Post by vinc535 »

Dear all,

I am happy to share with you a successful Upgrade from OTRS 3.3.8 to OTRS 4.0.2. that I did today on an OTRS install on CENTOS6 with MYSQL:
Here are the step by step things I did:

AS ROOT USER:
shell> cd /root
shell> wget http://my-source-for-otrs.com/otrs-4.0.2-01.noarch.rpm (RPM for CentOS)
shell> /etc/init.d/cron stop
shell> /etc/init.d/postfix stop
shell> /etc/init.d/httpd stop

AS OTRS USER:
su otrs
shell> cd /opt/otrs/
shell> bin/Cron.sh stop
shell> bin/otrs.Scheduler.pl -a stop

AS ROOT USER:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Backup everything below /opt/otrs/
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
var/*
as well as the database.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

AS ROOT USER:
shell> cd /root/
shell> wget http://pkgs.repoforge.org/perl-Archive- ... noarch.rpm
shell> rpm -Uvh perl-Archive-Zip-1.30-1.el6.rfx.noarch.rpm
shell> rpm -Uvh otrs-4.x.x.-01.rpm
shell> /opt/otrs/bin/otrs.CheckModules.pl

AS ROOT USER, UPDATE THE DATABASE SCHEMA:
shell> cd /opt/otrs/
shell> bin/otrs.CheckDB.pl
shell> cat scripts/DBUpdate-to-4.mysql.sql | mysql -p -f -u root otrs

AS OTRS USER:
RUN MIGRATION SCRIPT AS OTRS USER:
shell> su otrs
shell> cd /opt/otrs/scripts/
shell> ./DBUpdate-to-4.pl
shell> cd /opt/otrs/bin/
shell> otrs.RebuildConfig.pl
shell> otrs.DeleteCache.pl

shell> exit (to go back as ROOT)

AS ROOT USER:
shell> /etc/init.d/httpd start
shell> /etc/init.d/postfix start
shell> /etc/init.d/crond start

************extra**********
IF HTTPD CANNOT START, SHOWING AN ERROR "Can't locate /opt/otrs/scripts/apache2-perl-startup.pl in @INC".
*******solution**********
If you look in your OTRS conf file (on CentOS6 it is /etc/httpd/conf.d/zzz_otrs.conf) on about line 14 you will see:
<IfModule mod_perl.c>
If your mod_perl is included as mod_perl.so this causes an issue, simply change it to
<IfModule mod_perl.so>
HTTPD will then start successfully!

End.
By Vincent for the OTRS Community Forum.
Locked