R
R
Roman2015-12-29 15:25:53
Debian
Roman, 2015-12-29 15:25:53

OTRS 5 Debian8 How to install?

I install according to different articles, in principle, the same thing is written everywhere.
I mainly did this article, otrs.github.io/doc/manual/admin/5.0/ru/html/manual...
but it seemed to me that the item was missing:
cp /opt/otrs/scripts/apache2- httpd.include.conf /etc/apache2/sites-available/otrs.conf
As a result, after copying it, everything should work and the whole page should open with further installation

service apache2 reload
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.

systemctl status apache2.service -l
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: active (exited) (Result: exit-code) since Вт 2015-12-29 15:07:18 MSK; 12min ago
  Process: 5574 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 5711 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILURE)
  Process: 5583 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)

дек 29 15:07:18 srv apache2[5583]: The Apache error log may have more information.
дек 29 15:07:18 srv apache2[5583]: .
дек 29 15:18:43 srv apache2[5691]: Reloading web server: apache2 failed!
дек 29 15:18:43 srv apache2[5691]: Apache2 is not running ... (warning).
дек 29 15:18:43 srv systemd[1]: apache2.service: control process exited, code=exited status=1
дек 29 15:18:43 srv systemd[1]: Reload failed for LSB: Apache2 web server.
дек 29 15:18:48 srv apache2[5711]: Reloading web server: apache2 failed!
дек 29 15:18:48 srv apache2[5711]: Apache2 is not running ... (warning).
дек 29 15:18:48 srv systemd[1]: apache2.service: control process exited, code=exited status=1
дек 29 15:18:48 srv systemd[1]: Reload failed for LSB: Apache2 web server.

cat /var/log/apache2/error.log
[Tue Dec 29 15:07:18.938923 2015] [perl:error] [pid 5596] Can't locate /usr/share/otrs/scripts/apache2-perl-startup.pl in @INC (@INC contains: /etc/perl /usr/local/lib/i386-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/i386-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/i386-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl . /etc/apache2) at (eval 2) line 1.\n
[Tue Dec 29 15:07:18.939033 2015] [perl:error] [pid 5596] Can't load Perl file: /usr/share/otrs/scripts/apache2-perl-startup.pl for server 127.0.1.1:0, exiting...

All checks of modules and pearls during installation pass without problems.
I tried to install several times, but I always run into this problem.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2015-12-29
@Uvetrom

In general, it’s true, you don’t need to stupidly copy-paste, I missed part of the article.
Most Apache installations have a conf.d directory included. On Linux systems you can usually find this directory under /etc/apache or /etc/apache2. Log in as root, change to the conf.d directory and link the appropriate template in /opt/otrs/scripts/apache2-httpd.include.conf to a file called zzz_otrs.conf in the Apache configuration directory (to make sure it is loaded after the other configurations).
In general, my decision with copying the file was almost correct, I just copied it in the wrong place.
As a result, I made a symbolic link to the file.
ln -s /opt/otrs/scripts/apache2-httpd.include.conf /etc/apache2/sites-available/zzz_otrs.conf
Not sure if this is correct, but it worked for me.
Thanks for the kick Apolakov Apolakov

A
Apolakov, 2015-12-29
@Apolakov

And what prevented you from doing just apt-get install otrs2? Well, or what are the versions of the packages now otrs? Copy-paste everything without thinking why? - just put it out of the package and that's it. Then update to the latest if needed. All dependencies will lift themselves.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question