Skip to content

Instantly share code, notes, and snippets.

@samirfor
Forked from litori/install_otrs_on_centos7.md
Last active October 23, 2017 23:05
Show Gist options
  • Save samirfor/3dcf01fdbc59d951dc7438ef3099a9e7 to your computer and use it in GitHub Desktop.
Save samirfor/3dcf01fdbc59d951dc7438ef3099a9e7 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-5.0.23-01.noarch.rpm
yum -y install epel-release
yum -y localinstall otrs-5.0.23-01.noarch.rpm

echo 'DirectoryIndex index.pl index.html index.htm' | tee -a /etc/httpd/conf.d/zzz_otrs.conf

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

http://{IP}/otrs/installer.pl

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