Install OTRS in a folder other than /opt/otrs

Moderator: crythias

Locked
nkamkar
Znuny newbie
Posts: 3
Joined: 21 Dec 2013, 23:22
Znuny Version: 3.3.3
Real Name: Nima

Install OTRS in a folder other than /opt/otrs

Post by nkamkar »

:( Hello all

I hope you are well. I am an OTRS newbie and I want to install it on our Debian server. It is a dedicated server and I have root access. However, I do not wish to install it under default location of /opt/otrs. Instead, I want to install it under a subdomain like "support.example.com/helpdesk". Is this possible?

I have replaced /opt/otrs with "support.example.com/helpdesk" in every file of the source code, but then I cannot easily run the installer. I have to go to "support.example.com/helpdesk/bin/cgi-bin/installer.pl" which starts the installer, but then I cannot go to other steps, clicking on the links does nothing.

Can anyone help please?

Regards

Nima
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Install OTRS in a folder other than /opt/otrs

Post by reneeb »

The domain is independent from the location in the filesystem. Install OTRS in /opt/otrs and tell Apache to point the subdomain to that location...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
nkamkar
Znuny newbie
Posts: 3
Joined: 21 Dec 2013, 23:22
Znuny Version: 3.3.3
Real Name: Nima

Re: Install OTRS in a folder other than /opt/otrs

Post by nkamkar »

Thanks for your reply reneeb.

I know I can do that. The main reason for me was ease of backup. The backup jobs run per domain and backup everything under each domain (using Plesk). Plesk backup cannot access /opt. So I need to run backup jobs on my own or write a script or a cron job to copy things over to where Plesk can back up and so on.

If I could install it all under my domain, life would be so much simpler for me. So is it not possible to install it elsewhere?

Regards

Nima
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Install OTRS in a folder other than /opt/otrs

Post by reneeb »

Sure, you can install it whereever you want. You have to set

Code: Select all

 $Self->{Home} = '/your/real/path';
in your Kernel/Config.pm. That's it... Please note that it is recommended that the OTRS directory is the home directory of the otrs user.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
nkamkar
Znuny newbie
Posts: 3
Joined: 21 Dec 2013, 23:22
Znuny Version: 3.3.3
Real Name: Nima

Re: Install OTRS in a folder other than /opt/otrs

Post by nkamkar »

Thanks Reneeb

it has to be more than just $Self->{Home} in Config.pm file. For starters, I also changed the otrs.conf file which we copy into /etc/apache2 folder. Either way, I am getting HTTP 500 server error. There are around 370 lines amongst all the files where /opt/otrs is explicitly used in the code.

Any ideas??? :( :( :( :( :(
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Install OTRS in a folder other than /opt/otrs

Post by crythias »

etc/apache2/conf/otrs.conf
the otrs user's home directory
Config.pm

This usually covers most of them.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Install OTRS in a folder other than /opt/otrs

Post by reneeb »

nkamkar wrote:Thanks Reneeb

it has to be more than just $Self->{Home} in Config.pm file. For starters, I also changed the otrs.conf file which we copy into /etc/apache2 folder. Either way, I am getting HTTP 500 server error.
You should find more about those errors in your webserver log.
There are around 370 lines amongst all the files where /opt/otrs is explicitly used in the code.
Around 200 lines is in translation files -> no need to change anything
Around 110 lines in documentation (either POD or files like Changes.md or UPGRADING.md)
Around 30 lines in .spec files needed to build packages for OS distributions.

There are only few lines left.

<OTRS_HOME>/scripts/apache2-perl-startup.pl -> I forgot those four lines as I use a different setup (nginx + starman). But you already changed that file.
<OTRS_HOME>/Kernel/Config.pm -> The line I already mentioned.

You should post the error messages from the webserver logs.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Locked