安装LAMP
yum -yinstall 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
phpinfo();
?>
安装perl
yum install perl* -y
安装otrs
下载otrs
# 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
再次安装,成功。
OTRS支持环境安装
看一下我们还缺少什么必备条件
进入cpan模式
#cpan
nolock_cpan>install Crypt::Eksblowfish::Bcrype
nolock_cpan>install Encode::HanExtra
nolock_cpan>install JSON::XS
nolock_cpan> install Mail::IMAPClient
nolock_cpan> install PDF::API2
nolock_cpan> install Text::CSV_XS
没有安装成功。报错了!
解决办法:
#wget http://down1.chinaunix.net/distfiles/Text-CSV_XS-0.92.tgz#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
看一下我们还缺少什么必备条件