files
- http://ftp.otrs.org/pub/otrs/RPMS/rhel/7/otrs-4.0.7-01.noarch.rpm
- http://ftp.otrs.org/pub/otrs/itsm/bundle4/ITSM-4.0.7.opm
setenforce 0
firewall-cmd --set-default-zone=trusted
cd
curl -kLO http://ftp.otrs.org/pub/otrs/RPMS/rhel/7/otrs-4.0.7-01.noarch.rpm
yum -y install epel-release
yum -y install \
"perl(Apache2::Reload)" \
"perl(Archive::Tar)" \
"perl(Archive::Zip)" \
"perl(Crypt::Eksblowfish::Bcrypt)" \
"perl(Date::Format)" \
"perl(DBI)" \
"perl(DBD::mysql)" \
"perl(GD)" \
"perl(GD::Text)" \
"perl(GD::Graph)" \
"perl(IO::Socket::SSL)" \
"perl(JSON::XS)" \
"perl(List::Util::XS)" \
"perl(LWP::UserAgent)" \
"perl(Mail::IMAPClient)" \
"perl(ModPerl::Util)" \
"perl(Net::DNS)" \
"perl(Net::LDAP)" \
"perl(PDF::API2)" \
"perl(Template)" \
"perl(Template::Stash::XS)" \
"perl(Text::CSV_XS)" \
"perl(Time::HiRes)" \
"perl(Time::Piece)" \
"perl(XML::Parser)" \
"perl(YAML::XS)" \
./otrs-4.0.7-01.noarch.rpm \
;
echo 'DirectoryIndex index.pl index.html index.htm' | tee -a /etc/httpd/conf.d/zzz_otrs.conf
chkconfig --add otrs
chkconfig otrs on
yum -y install mariadb-server
sed -i.bak \
-e 's/\[mysqld\]/[mysqld]\nquery_cache_size=64M/' \
-e 's/\[mysqld\]/[mysqld]\ninnodb_log_file_size=512M/' \
-e 's/\[mysqld\]/[mysqld]\nmax_allowed_packet=64M/' \
/etc/my.cnf.d/server.cnf
systemctl start mariadb && systemctl enable mariadb
systemctl start httpd && systemctl enable httpd
service otrs start
その後、ブラウザでアクセスしてインストール http://{IP}/otrs/installer.pl