Skip to content

Instantly share code, notes, and snippets.

@litori
Forked from netmarkjp/install_otrs_on_centos7.md
Last active October 23, 2017 22:48
Show Gist options
  • Save litori/eb49bbdfc3474cf1f7a7 to your computer and use it in GitHub Desktop.
Save litori/eb49bbdfc3474cf1f7a7 to your computer and use it in GitHub Desktop.

Install

files

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment