我正在 Amazon Linux AMI 2017.03.0 (HVM) 上创建一个新的 OTRS 实例,但无法运行 installer.pl。我的安装步骤如下(到目前为止我已经执行了大约四次):
- 设置主机名
- 将私有 IP 地址与服务器的 FQDN(172.10.10.10 otrs.example.com)一起添加到 hosts 文件中
sudo yum -y update
sudo yum -y install bash-completion --enablerepo=epel
wget http://ftp.otrs.org/pub/otrs/RPMS/rhel/ ... noarch.rpm
sudo yum -y install --nogpgcheck otrs-5.0.18-01.noarch.rpm
sudo yum install -y mod24_perl "perl(JSON::XS)" "perl(GD::Text)" "perl(Encode::HanExtra)" "perl(GD::Graph)" "perl(Mail::IMAPClient)" "perl(PDF::API2)" "perl(Text::CSV_XS)" "perl(YAML::XS)" "perl(DBD::mysql)"
sudo /sbin/chkconfig httpd on
sudo reboot
SELinux 已禁用。重启后,我可以访问 Amazon Linux AMI 测试页面,但无法访问 otrs.example.com/otrs/installer.pl(导致 500 内部服务器错误)。
我的 httpd_error 日志显示:
[Thu Apr 20 22:21:31.894716 2017] [core:notice] [pid 2721] AH00094: Command line: '/usr/sbin//opt/'
[Thu Apr 20 22:21:41.067143 2017] [:error] [pid 2725] Cannot find current script '/opt/' at /usr/share/perl5/FindBin.pm line 166.\nBEGIN failed--compilation aborted at /usr/share/perl5/FindBin.pm line 166.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/installer.pl line 25.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/installer.pl line 25.\n
[Thu Apr 20 22:21:48.280174 2017] [:error] [pid 2726] Cannot find current script '/opt/' at /usr/share/perl5/FindBin.pm line 166.\nBEGIN failed--compilation aborted at /usr/share/perl5/FindBin.pm line 166.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/installer.pl line 25.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/installer.pl line 25.\n
[Thu Apr 20 22:58:25.283392 2017] [autoindex:error] [pid 2724] [client 64.62.178.49:52639] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
答案1
我没有弄清楚到底出了什么问题,但它与指定有关mod24_perl
。此安装在 Amazon Linux 上有效:
sudo yum -y install --nogpgcheck otrs-5.0.18-01.noarch.rpm
sudo yum install -y "perl(Crypt::Eksblowfish::Bcrypt)" "perl(JSON::XS)" "perl(GD::Text)" "perl(Encode::HanExtra)" "perl(GD::Graph)" "perl(Mail::IMAPClient)" "perl(PDF::API2)" "perl(Text::CSV_XS)" "perl(YAML::XS)" "perl(DBD::mysql)"
我以为我一开始就尝试过这样的安装,但一定是配置错误了。