yum -y install httpd php php-mysql mysql mysql-server perl-DBD-MySQL php-pdo net-snmp net-snmp-libs net-snmp-utils net-snmp-devel ruby php-snmp ruby-devel rrdtool-ruby rrdtool-perl
service iptables stop //防火墙一定要关闭
setenforce 0 关闭selinux 不然无法修改数据库
service httpd start
service mysqld start
mysqladmin -uroot password '123456'
vi /var/www/html/info.php
<?php
phpinfo();
?>
https://www.otrs.com/try/?lang=zh-hans
https://www.otrs.com/download-thank-you/thank-you-downloading-otrs-software/?download=/RPMS/rhel/6/otrs-3.3.9-01.noarch.rpm
看一下我们还缺少什么必备条件
#perl /opt/otrs/bin/otrs.CheckModules.pl
出现警告
o YAML::XS.........................Not installed! (required - Please install this module - )
进入cpan模式
#cpan
nolock_cpan>install YAML::XS
在测试一次是否安装完成
perl /opt/otrs/bin/otrs.CheckModules.pl
测试这个perl脚本语法的正确性
# perl -cw /opt/otrs/bin/cgi-bin/index.pl
# perl -cw /opt/otrs/bin/cgi-bin/customer.pl
# perl -cw /opt/otrs/bin/otrs.PostMaster.pl
cd /opt/otrs/
bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=apache --otrs-group=apache --web-group=apache /opt/otrs
重启httpd服务
service httpd restart
登录初始化界面,ip为你主机的ip
http://localhost/otrs/installer.pl
根据提示一步一步往下填写