Difference between revisions of "CentOS 7.x Install and configure OTRS"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>CentOS_7.x_OTRS|CentOS 7.x OTRS</yambe:breadcrumb> =CentOS 7.x Install and configure OTRS= To install and configure OTRS on CentOS 7.x use following steps:...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x OTRS]] > [[CentOS 7.x Install and configure OTRS]] | |||
# Install EPEL using: | # Install EPEL using: | ||
Line 91: | Line 88: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x OTRS]] > [[CentOS 7.x Install and configure OTRS]] |
Latest revision as of 09:21, 25 August 2022
Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x OTRS > CentOS 7.x Install and configure OTRS
- Install EPEL using:
- yum install epel-release -y
- Install HTTPD and MARIADB using:
- yum install httpd mariadb-server mariadb -y
- Start Apache and MariaDB server and enable them to start on boot
- systemctl start httpd
- systemctl start mariadb
- systemctl enable httpd
- systemctl enable mariadb
- Secure Mariadb using:
- mysql_secure_installation
- Create DB for OTRS using:
- mysql -u root -p
- mysql> CREATE DATABASE otrs_db;
- mysql> GRANT ALL PRIVILEGES ON otrs_db.* TO 'otrs'@'localhost' IDENTIFIED BY 'password';
- mysql> FLUSH PRIVILEGES;
- mysql> exit
- Modify '/etc/my.cnf' file as follows:
- max_allowed_packet=30M
- query_cache_size=36M
- innodb_log_file_size=256M
- Save the file then restart MariaDB service to apply these changes
- systemctl stop mariadb
- rm -f /var/lib/mysql/ib_logfile*
- systemctl start mariadb
- Install GCC using:
- yum install gcc -y
- Install required PERL modules using:
- yum install bash-completion "perl(Archive::Zip)" "perl(Crypt::SSLeay)" "perl(IO::Socket::SSL)" "perl(LWP::UserAgent)" "perl(Net::DNS)" "perl(Net::LDAP)" "perl(Template)" "perl(XML::LibXML)" "perl(XML::LibXSLT)" "perl(XML::Parser)" "perl(YAML::XS)" "perl(YAML::XS)" "perl(Authen::NTLM)" "perl(Mail::IMAPClient)" "perl(JSON::XS)" "perl(Encode::HanExtra)" "perl(DBD::Pg)" "perl(Crypt::Eksblowfish::Bcrypt)" perl-core procmail -y
- Download OTRS from Internet. Example URL is http://ftp.otrs.org/pub/otrs/RPMS/rhel/7/otrs-6.0.6-01.noarch.rpm
- Install OTRS using yum
- yum localinstall otrs-6.0.6-01.noarch.rpm
- Check the missing modules by running the following script
- /opt/otrs/bin/otrs.CheckModules.pl
- Install Missing Modules
- Copy OTRS default configuration file
- cd /opt/otrs/Kernel
- cp Config.pm.dist Config.pm
- Modify mysql settings in '/opt/otrs/Kernel/Config.pm' to:
- $Self->{Database} = 'otrs_db';
- $Self->{DatabaseUser} = 'otrs';
- $Self->{DatabasePw} = 'password';
- Enable MySQL support by editing '/opt/otrs/scripts/apache2-perl-startup.pl file as:
- use DBD::mysql ();
- use Kernel::System::DB::mysql;
- Restart Apache using:
- systemctl restart httpd
- Start the OTRS daemon and activate its cronjob
- su - otrs -c "/opt/otrs/bin/otrs.Daemon.pl start"
- su - otrs -c "/opt/otrs/bin/Cron.sh start"
- Open OTRS in web browser using http://<fqdn-or-ip-address>/otrs/index.pl
Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x OTRS > CentOS 7.x Install and configure OTRS