I tried to install zabbix-server-mysql 5.0.19 on a VM (newly installed Centos7.5 (centos 1804)).
My steps are:
1. Install MySQL 5.7(mysql-community-server), created zabbix database schema, zabbix user, granted full access to zabbix database schema.
2. Yum installed zabbix-server-mysql zabbix-web-mysql-scl zabbix-apache-conf-scl successfully.
3. Initialized zabbix database zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
4. Modified zabbix_server.conf (simply changed DBPassword to the password I previously set for zabbix user)
5. systemctl restart zabbix-server httpd rh-php72-php-fpm && systemctl enable zabbix-server httpd rh-php72-php-fpm
Then I go to http://IP/zabbix to complete Zabbix installation.
All the prerequisites are "OK". But when I go to "Configure DB connection" page, I got an "cannot connect to the database" error.
And the "Database type" row is empty (normally there would be a scroll down list with options , like the first picture I attach.)
Please refer to the 2nd picture I attached for the error.
Things I've tried/checked
I tried to change Database host to 127.0.0.1 or the IP I configured for the VM; I tried change database port from 0 (which means default port) to 3306 (which is Mysql server default port); Tried use root user to connect instead of zabbix user.
I am pretty sure database was connectable. (I tried via CLI : mysql -uzabbix - ppassword and connected to the database successfully.)
I am sure, 10051(zabbix-server) 3306(mysql) 80(apache httpd) ports are available (checked with netstat command)。
I also tried manually copying a zabbix.conf.php file to /etc/zabbix/web/zabbix.conf.php
Now when I tried http://IP/zabbix, I was already logged in the frontend page. But......It's basically empty, none of the buttons were responsive when i hit them.
I doubt the problem is with Apache httpd, there could be some php file missing or maybe there is a lack of some library when apache tring to connect to the database?
Is there someone who can help me on this? Much appreciated in advance!
My steps are:
1. Install MySQL 5.7(mysql-community-server), created zabbix database schema, zabbix user, granted full access to zabbix database schema.
2. Yum installed zabbix-server-mysql zabbix-web-mysql-scl zabbix-apache-conf-scl successfully.
3. Initialized zabbix database zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
4. Modified zabbix_server.conf (simply changed DBPassword to the password I previously set for zabbix user)
5. systemctl restart zabbix-server httpd rh-php72-php-fpm && systemctl enable zabbix-server httpd rh-php72-php-fpm
Then I go to http://IP/zabbix to complete Zabbix installation.
All the prerequisites are "OK". But when I go to "Configure DB connection" page, I got an "cannot connect to the database" error.
And the "Database type" row is empty (normally there would be a scroll down list with options , like the first picture I attach.)
Please refer to the 2nd picture I attached for the error.
Things I've tried/checked
I tried to change Database host to 127.0.0.1 or the IP I configured for the VM; I tried change database port from 0 (which means default port) to 3306 (which is Mysql server default port); Tried use root user to connect instead of zabbix user.
I am pretty sure database was connectable. (I tried via CLI : mysql -uzabbix - ppassword and connected to the database successfully.)
I am sure, 10051(zabbix-server) 3306(mysql) 80(apache httpd) ports are available (checked with netstat command)。
I also tried manually copying a zabbix.conf.php file to /etc/zabbix/web/zabbix.conf.php
Now when I tried http://IP/zabbix, I was already logged in the frontend page. But......It's basically empty, none of the buttons were responsive when i hit them.
I doubt the problem is with Apache httpd, there could be some php file missing or maybe there is a lack of some library when apache tring to connect to the database?
Is there someone who can help me on this? Much appreciated in advance!
Comment