Делал согласно этой инструкции https://doc.otrs.com/doc/manual/install ... ation.html
Одна загвоздка, в моей OTRS 6 community edition не отработала команда
Код: Выделить всё
sudo -u otrs perl /opt/otrs/bin/otrs.Console.pl Maint::DocumentSearch::Check
После запуска демона на perl
Попытался запустить otrs.WebServer.pl но этот файл по просту отсутствовал!
После ошибки и последующей корректировке файла www.conf - security.limit_extensions и добавления нужного мне .pl
страница открылась но не так как хотелось) ( При этом nginx ошибок не выдавал)
Код: Выделить всё
#!/usr/bin/perl # -- # Copyright (C) 2001-2020 OTRS AG, https://otrs.com/ # -- # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see https://www.gnu.org/licenses/gpl-3.0.txt. # -- use strict; use warnings; # use ../../ as lib location use FindBin qw($Bin); use lib "$Bin/../.."; use lib "$Bin/../../Kernel/cpan-lib"; use lib "$Bin/../../Custom"; use CGI::Fast; use Module::Refresh; # load agent web interface use Kernel::System::Web::InterfaceAgent(); use Kernel::System::ObjectManager; # 0=off;1=on; my $Debug = 0; #my $Cnt = 0; # Response loop while ( my $WebRequest = CGI::Fast->new() ) { # Reload files in @INC that have changed since the last request. eval { Module::Refresh->refresh(); }; local $Kernel::OM = Kernel::System::ObjectManager->new(); my $Interface = Kernel::System::Web::InterfaceAgent->new( Debug => $Debug, WebRequest => $WebRequest, ); $Interface->Run(); # $Cnt++; # print STDERR "This is connection number $Cnt\n"; }
Version:
otrs - 6
php - 72
mysql-server 57
nginx 1.16.1
elasticsearch-6
os - 12.1-RELEASE-p2 FreeBSD
В системе не хватает модуля XML::LibXSLT как описано в комменте от него зависит главный интерфейс. Но этот чудесный пакет не ставиться с помощью
Код: Выделить всё
cpan XML::LibXSLT
Код: Выделить всё
root@fr1:/var/log # cpan XML::LibXSLT
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 13 Mar 2020 13:17:03 GMT
Running install for module 'XML::LibXSLT'
Checksum for /root/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXSLT-1.99.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring S/SH/SHLOMIF/XML-LibXSLT-1.99.tar.gz with Makefile.PL
running pkg-config libxslt... failed
using fallback values for LIBS and INC
options:
LIBS='-L/usr/local/lib -L/usr/lib -lxslt -lxml2 -lz -lm'
INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
$ /usr/local/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'
looking for -lxslt... yes
looking for -lexslt... yes
running pkg-config libexslt... failed
using fallback values for LIBS and INC
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lxslt
Warning (mostly harmless): No library found for -lexslt
Generating a Unix-style Makefile
Writing Makefile for XML::LibXSLT
Writing MYMETA.yml and MYMETA.json
SHLOMIF/XML-LibXSLT-1.99.tar.gz
/usr/local/bin/perl Makefile.PL -- OK
Running make for S/SH/SHLOMIF/XML-LibXSLT-1.99.tar.gz
cp LibXSLT.pm blib/lib/XML/LibXSLT.pm
Running Mkbootstrap for LibXSLT ()
chmod 644 "LibXSLT.bs"
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- LibXSLT.bs blib/arch/auto/XML/LibXSLT/LibXSLT.bs 644
"/usr/local/bin/perl" "/usr/local/lib/perl5/5.30/ExtUtils/xsubpp" -typemap '/usr/local/lib/perl5/5.30/ExtUtils/typemap' -typemap '/root/.cpan/build/XML-LibXSLT-1.99-4/typemap' LibXSLT.xs > LibXSLT.xsc
mv LibXSLT.xsc LibXSLT.c
cc -c -I/usr/local/include -I/usr/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DVERSION=\"1.99\" -DXS_VERSION=\"1.99\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.30/mach/CORE" -DHAVE_BLANK -DHAVE_BLANK -DHAVE_EXSLT LibXSLT.c
LibXSLT.xs:12:10: fatal error: 'libxslt/xsltconfig.h' file not found
#include <libxslt/xsltconfig.h>
^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
*** Error code 1
Stop.
make: stopped in /root/.cpan/build/XML-LibXSLT-1.99-4
SHLOMIF/XML-LibXSLT-1.99.tar.gz
/usr/bin/make -- NOT OK
Эта часть решилась установкой пакета libxslt
После повторил установку модуля, встал. Перезагрузил все процессы и