2 OTRS on Ubuntu

Moderator: crythias

Locked
danny2001k
Znuny newbie
Posts: 6
Joined: 07 Nov 2013, 14:36
Znuny Version: 3.2.12

2 OTRS on Ubuntu

Post by danny2001k »

Hello,

I successful installed otrs in ubuntu like this:

Code: Select all

tar -xzf otrs-3.x.x.tar.gz
sudo su
mv otrs-3.x.x /opt/otrs
useradd -r -d /opt/otrs/ -c 'OTRS user' otrs
usermod -g www-data otrs
cd /opt/otrs/Kernel
cp Config.pm.dist Config.pm
cp Config/GenericAgent.pm.dist Config/GenericAgent.pm
cd /opt/otrs/bin
./otrs.SetPermissions.pl --otrs-user=otrs --otrs-group=otrs --web-user=www-data --web-group=www-data /opt/otrs
cp -va /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/otrs
cd /etc/apache2/sites-available/
chown root:root otrs
a2ensite otrs
service apache2 reload
then http://lcoalhost/otrs/installer.pl
Webinstall in otrs DB With otrs DB user


I want to have a second installation on the same server (in folder otrs1 with different user, db, db user etc...)
What I did:

Code: Select all

tar -xzf otrs-3.x.x.tar.gz
sudo su
mv otrs-3.x.x /opt/otrs1
useradd -r -d /opt/otrs1/ -c 'OTRS user1' otrs1
usermod -g www-data otrs1
cd /opt/otrs1/Kernel
cp Config.pm.dist Config.pm
pico Config.pm and modified:
from:
$Self->{Home} = '/opt/otrs';
to:
$Self->{Home} = '/opt/otrs1';

modified the file scripts/apache2-perl-startup.pl and modified:
From: $0 = '/opt/otrs/bin/cgi-bin/index.pl';
to: $0 = '/opt/otrs1/bin/cgi-bin/index.pl';
From:
use lib "/opt/otrs/";
use lib "/opt/otrs/Kernel/cpan-lib";
use lib "/opt/otrs/Custom";
To:
use lib "/opt/otrs1/";
use lib "/opt/otrs1/Kernel/cpan-lib";
use lib "/opt/otrs1/Custom";

Code: Select all

cp Config/GenericAgent.pm.dist Config/GenericAgent.pm
cd /opt/otrs1/bin
./otrs.SetPermissions.pl --otrs-user=otrs1 --otrs-group=otrs1 --web-user=www-data --web-group=www-data /opt/otrs1
cp -va /opt/otrs1/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/otrs1
cd /etc/apache2/sites-available/
pico otrs1 and modified:
From:
ScriptAlias /otrs1/ "/opt/otrs1/bin/cgi-bin/"
Alias /otrs1-web/ "/opt/otrs1/var/httpd/htdocs/"

I had a problem here with /otrs1-web/ teh site would look for some files in /otrs-web/ so I left it like this
And all links with otrs to otrs1

Code: Select all

chown root:root otrs1
a2ensite otrs1
service apache2 reload
I went to http://lcoalhost/otrs1/installer.pl
Webinstall in otrs1 DB With otrs1 DB user


The problem is that starting now the fist OTRS uses the second DB (otrs1)...

What am I missing? Any file that also needs to be edited?

Ty
Danny
Locked