PR

[OTRS] CentOS に OTRS 3.0.2 をインストール(まとめ直し)

pc.casey.jp » [OTRS] インストール手順 のまとめ直し。

ダウンロード


[root@localhost ~]# rpm -Uvh otrs-3.0.2-01.noarch.rpm
エラー: 依存性の欠如:
perl-URI は otrs-3.0.2-01.noarch に必要とされています
perl-libwww-perl は otrs-3.0.2-01.noarch に必要とされています
perl-Net-DNS は otrs-3.0.2-01.noarch に必要とされています
perl-IO-Socket-SSL は otrs-3.0.2-01.noarch に必要とされています
perl-XML-Parser は otrs-3.0.2-01.noarch に必要とされています


スポンサードリンク

インストール前の準備

MySQLの準備

# yum install mysql-server -y
# service mysqld start
# chkconfig mysqld on

pc.casey.jp » [MySQL] MySQLの初期設定

Apacheの準備

# yum install httpd mod_perl -y
# service httpd start
# chkconfig httpd on

必要モジュールのインストール

# yum install perl-URI perl-libwww-perl perl-Net-DNS perl-IO-Socket-SSL perl-XML-Parser perl-TimeDate perl-DBI perl-DBD-MySQL perl-BSD-Resource perl-Compress-Zlib perl-Digest-HMAC perl-Digest-SHA1 perl-HTML-Tagset perl-Net-IP perl-Net-SSLeay

OTRSのインストール

# rpm -Uvh otrs-3.0.2-01.noarch.rpm
Starting OTRS..
Checking httpd ... done.
Checking MySQL ... done.
Checking database connect... DBI connect('database=otrs;host=localhost;','otrs',...) failed: Access denied for user 'otrs'@'localhost' (using password: YES) at /opt/otrs/Kernel/System/DB.pm line 210
ERROR: OTRS-otrs.CheckDB.pl-10 Perl: 5.8.8 OS: linux Time: Sat Nov 20 09:05:39 2010

Message: Access denied for user 'otrs'@'localhost' (using password: YES)

Traceback (2584):
Module: Kernel::System::DB::new (v1.125) Line: 181
Module: /opt/otrs/bin/otrs.CheckDB.pl (v1.3) Line: 52

No database connect! Error!
May your database isn't configured yet?

Try the web installer to configure your database:

-->> http://localhost.localdomain/otrs/installer.pl <<--

or configure your database with README.database (DB - Setup Example)


OTRSインストール後の処理


# service httpd restart

# service mysqld start

# service otrs start
# chkconfig otrs on

ウェブからのセットアップ


http://192.168.1.xxx/otrs/installer.pl

パーミッションの問題が発生したら


[root@localhost ~]# /opt/otrs/bin/otrs.SetPermissions.pl --admin-group-writable --otrs-user=root --otrs-group=root --admin-user=root --admin-group=root --admin-group-writable --web-group=daemon /opt/otrs
bin/otrs.SetPermissions.pl <1.3> - set OTRS file permissions
Copyright (C) 2001-2010 OTRS AG, http://otrs.org/
Setting permissions on /opt/otrs
Setting permissions on /opt/otrs/var
Setting permissions on /opt/otrs/bin/*
Setting permissions on /opt/otrs/scripts/*.pl
Setting permissions on /opt/otrs/scripts/tools/*.pl
Setting permissions on Kernel/Config.pm
Setting owner rw and group ro permissions on /opt/otrs/
Setting owner rw and group ro permissions on /opt/otrs/.procmailrc
Setting owner rw and group ro permissions on /opt/otrs/.fetchmailrc


jQueryの問題が出ない!

pc.casey.jp » [OTRS] OTRS 3.0.2 にアップグレード などで解決されなかったjQueryの問題が出なかった!何事もなかったかのようにログインもセットアップもできた!?

既存のOTRS削除するには?


# rpm -e otrs


これだけでは不十分なようで、


# rm /opt/otrs/ -rf


もしておく。その後、


# rpm -Uvh orts...


と再インストールすればよい。

追記

openSUSE にインストールしたところ、日本語に対応していたので、CentOS 5.6 ( otrs-3.0.8-01.noarch.rpm )でテストし、記載を一部変更した。

参考文献

コメント