How to use different root path for otrs application?

English! place to talk about development, programming and coding
Post Reply
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

How to use different root path for otrs application?

Post by williamrobert1983 »

Hi,

I want install one more otrs applications in the same server with different name called 'otrs-iot'.

currently, the otrs application is running in the default web root - > /opt/otrs/

but, i wanted to install another otrs app in the same sever . example : /opt/otrs-iot/

please advice me where i need to configured and setup. thanks lot!

william
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: How to use different root path for otrs application?

Post by reneeb »

You have to copy https://github.com/OTRS/otrs/blob/rel-3 ... ts.pm#L806 to your Kernel/Config.pm and set the correct value. And you have to update the apache config and https://github.com/OTRS/otrs/blob/rel-3 ... startup.pl as well.
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
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Re: How to use different root path for otrs application?

Post by williamrobert1983 »

Hi,

I have changed. But, i am getting browser warning message. please check it attached file.

please check the root . /etc/httpd/config.d/otrs-iot.conf

Code: Select all


# --
# added for OTRS (http://otrs.org/)
# $Id: apache2-httpd.include.conf,v 1.25 2011/11/05 17:39:09 mb Exp $
# --

# agent, admin and customer frontend
ScriptAlias /otrs-iot/ "/opt/otrs-iot/bin/cgi-bin/"
Alias /otrs-iot-web/ "/opt/otrs-iot/var/httpd/htdocs/"

# activate this if you are using an Oracle database
#SetEnv ORACLE_HOME /path/to/your/oracle/
#SetEnv ORACLE_SID YOUR_SID
#SetEnv NLS_LANG AMERICAN_AMERICA.UTF8
#SetEnv NLS_DATE_FORMAT 'YYYY-MM-DD HH24:MI:SS'

# if mod_perl is used
<IfModule mod_perl.c>

    # load all otrs modules
    Perlrequire /opt/otrs-iot/scripts/apache2-perl-startup.pl

    # Apache::Reload - Reload Perl Modules when Changed on Disk
    PerlModule Apache2::Reload
    PerlInitHandler Apache2::Reload
    PerlModule Apache2::RequestRec

    # set mod_perl2 options
    <Location /otrs-iot>
#        ErrorDocument 403 /otrs-iot/customer.pl
        ErrorDocument 403 /otrs-iot/index.pl
        SetHandler  perl-script
        PerlResponseHandler ModPerl::Registry
        Options +ExecCGI
        PerlOptions +ParseHeaders
        PerlOptions +SetupEnv
        Order allow,deny
        Allow from all
    </Location>

    # set mod_perl2 option for generic interface
    <Location /otrs-iot/nph-genericinterface.pl>
        PerlOptions -ParseHeaders
    </Location>

</IfModule>

# directory settings
<Directory "/opt/otrs-iot/bin/cgi-bin/">
    AllowOverride None
    Options +ExecCGI -Includes
    Order allow,deny
    Allow from all
</Directory>
<Directory "/opt/otrs-iot/var/httpd/htdocs/">
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_headers.c>
    <Directory "/opt/otrs-iot/var/httpd/htdocs/skins/*/*/css-cache">
        <FilesMatch "\.(css|CSS)$">
            Header set Cache-Control "max-age=2592000 must-revalidate"
        </FilesMatch>
    </Directory>

    <Directory "/opt/otrs-iot/var/httpd/htdocs/js/js-cache">
        <FilesMatch "\.(js|JS)$">
            Header set Cache-Control "max-age=2592000 must-revalidate"
        </FilesMatch>
    </Directory>
</IfModule>

# MaxRequestsPerChild (so no apache child will be to big!)
MaxRequestsPerChild 4000


thanks
You do not have the required permissions to view the files attached to this post.
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: How to use different root path for otrs application?

Post by reneeb »

When you change the alias from "otrs-web" to anything else

Code: Select all

Alias /otrs-iot-web/ "/opt/otrs-iot/var/httpd/htdocs/"
, you have to copy https://github.com/OTRS/otrs/blob/rel-3 ... ts.pm#L211 to your config and change the "otrs-web" as well.
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
williamrobert1983
Znuny newbie
Posts: 94
Joined: 24 Oct 2013, 11:24
Znuny Version: 3.1.1
Real Name: William
Company: Xchanging

Re: How to use different root path for otrs application?

Post by williamrobert1983 »

thanks for your reply.
Post Reply