Last active
February 15, 2019 17:26
-
-
Save methodbox/c96f4093c21261ef883ea6462ded8548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
yum install -y yum-utils setroubleshoot policycoreutils-python vim | |
yum-config-manager --enable remi-php56 | |
yum install -y httpd | |
echo '[mariadb] | |
name = MariaDB | |
baseurl = http://yum.mariadb.org/10.1/centos7-amd64 | |
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB | |
gpgcheck=1' > /etc/yum.repos.d/mariadb.repo | |
yum update -y | |
setsebool -P httpd_can_connect_ldap=1 | |
setsebool -P httpd_builtin_scripting=1 | |
setsebool -P httpd_can_network_connect=1 | |
setsebool -P httpd_can_network_connect_db=1 | |
setsebool -P httpd_can_network_memcache=1 | |
setsebool -P httpd_enable_cgi=1 | |
setsebool -P httpd_enable_homedirs=1 | |
setsebool -P httpd_graceful_shutdown=1 | |
setsebool -P httpd_unified=1 | |
setsebool -P httpd_can_connect_zabbix=1 | |
setsebool -P zabbix_can_network=1 | |
firewall-cmd --zone=public --permanent --add-port=80/tcp | |
firewall-cmd --zone=public --permanent --add-port=443/tcp | |
firewall-cmd --zone=public --permanent --add-service=http | |
firewall-cmd --zone=public --permanent --add-service=https | |
systemctl restart firewalld | |
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm | |
yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment