• 安装LAMP

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

vim /etc/httpd/conf/httpd.conf

找到DirectoryIndex所在的位置,添加一行

DirectoryIndex  index.php

/etc/init.d/iptables stop   //防火墙一定要关闭。不然无法打开info.php

service httpd restart

service mysqld restart

chkconfig httpd on

chkconfig mysqld on

vi /var/www/html/info.php

<?php

phpinfo();

?>

  • 安装perl

yum install perl* -y

  • 安装otrs

下载otrs

#wget 

# rpm -ivh otrs-3.2.3-01.noarch.rpm

错误信息

[root@otrs Desktop]# rpm -ivh otrs-3.2.3-01.noarch.rpm

error: Failed dependencies:

         procmail is needed by otrs-3.2.3-01.noarch

  • 安装procmail

 yum install procmail -y

# rpm -ivh otrs-3.2.3-01.noarch.rpm

再次安装,成功。

spacer.gif

  • OTRS支持环境安装

看一下我们还缺少什么必备条件

#perl /opt/otrs/bin/otrs.CheckModules.pl

spacer.gif

  • 进入cpan模式

#cpan

nolock_cpan>install Crypt::Eksblowfish::Bcrype

spacer.gif

nolock_cpan> install Encode::HanExtra

spacer.gif

nolock_cpan> install JSON::XS

spacer.gif

 nolock_cpan> install Mail::IMAPClient

spacer.gif

nolock_cpan> install PDF::API2

spacer.gif

  nolock_cpan> install Text::CSV_XS

没有安装成功。报错了!

spacer.gif

解决办法:

#wget 

#tar zxvf Text-CSV_XS-0.92.tgz
#cd Text-CSV_XS-0.92
#perl Makefile.PL 
#make
#make install

nolock_cpan> install YAML::XS

spacer.gif

看一下我们还缺少什么必备条件

#perl /opt/otrs/bin/otrs.CheckModules.pl

成功!全部安装完成。除了不需要的。

# useradd -d /opt/otrs/ -c 'OTRS user' otrs

# usermod -G apache otrs

# 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

spacer.gif

#bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=apache --otrs-group=apache --web-group=apache /opt/otrs

spacer.gif

#cd /opt/otrs/bin/fcgi-bin

#cp index.pl /opt/otrs/

#cp installer.pl /opt/otrs/

然后就可以安装成功了!

spacer.gif

spacer.gif

spacer.gif

spacer.gif

因为不知道邮件配置,我选择了跳过这一步。

spacer.gif

到此数据库设置成功。

下面开始进入OTRS。

spacer.gif