rpm -ivh http://repo.zabbix.com/zabbix/2.2/rhel/6/x86_64/zabbix-release-2.2-1.el6.noarch.rpm yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-web-japanese zabbix-agent mysql -h127.0.0.1 -u ${DATABASE_USER} -p${DATABASE_PASS} ${DATABASE_NAME} < /usr/share/doc/zabbix-server-mysql-2.2.3/create/schema.sql mysql -h127.0.0.1 -u ${DATABASE_USER} -p${DATABASE_PASS} ${DATABASE_NAME} < /usr/share/doc/zabbix-server-mysql-2.2.3/create/images.sql mysql -h127.0.0.1 -u ${DATABASE_USER} -p${DATABASE_PASS} ${DATABASE_NAME} < /usr/share/doc/zabbix-server-mysql-2.2.3/create/data.sql sed -i -e "s/memory_limit = 128M/memory_limit = 256M/g" /etc/php.ini sed -i -e "s/post_max_size = 8M/post_max_size = 16M/g" /etc/php.ini sed -i -e "s/max_execution_time = 90/max_execution_time = 300/g" /etc/php.ini sed -i -e "s/max_input_time = 60/max_input_time = 300/g" /etc/php.ini service httpd restart chkconfig zabbix-server on service zabbix-server start chkconfig zabbix-agent on service zabbix-agent start