In general, the default webserver is Apache. Zabbix is no exception, official documents are all recommended Apache.
If you insist on using Nginx to do webserver, PHP boot needs to install a php-fpm. And in the Zabbix Web installation interface, complete the 2nd step of the environment detection after the 3rd step of the Configure DB connection by default is not allowed to enter.
After repeated experiments on searching documents on the Internet, only one solution has been found for the time being.
Assuming Nginx's installation directory is/opt/nginx
Zabbix's Web document directory is/opt/nginx/html/zabbix
Then after the normal installation settings are complete, there will be zabbix.conf.php files under/opt/nginx/html/zabbix/conf
If the contents of the Zabbix.conf.php.example are not copied directly to the zabbix.conf.php file
The content is generally:
$DB ["TYPE"] = ' MYSQL ';
$DB ["SERVER"] = ' localhost ';
$DB ["PORT"] = ' 0 ';
$DB ["DATABASE"] = ' Zabbix ';
$DB ["USER"] = ' Zabbix ';
$DB ["PASSWORD"] = ' zabbix_password ';
SCHEMA is relevant only for IBM_DB2 database
$DB ["SCHEMA"] = ";
$ZBX _server = ' localhost ';
$ZBX _server_port = ' 10051 ';
$ZBX _server_name = ";
Modify the password for the 3306,DB data for your Zabbix account password.
Restart Zabbix and other services
Then again the browser login Zabbix or directly into the zabbix/dashboard.php will enter the login screen. Enter the default account password to log in to dashboard, if the install interface will be directly logged into the dashboard.php.
centos6.5 environment installation sequence and reference:
1.ruby
http://hack.aipo.com/archives/5707/
http://hotolab.net/blog/ruby_rpm/
2.nginx
http://karolgalanciak.com/blog/2013/07/19/centos-6-4-server-setup-with-ruby-on-rails-nginx-and-postgresql/
3. Handling PHP with Nginx
Http://qiita.com/utano320/items/36b6eac2bbd5bb5657f6
4.zabbix
Http://www.verydemo.com/demo_c281_i64452.html
http://qiita.com/ksworks/items/911561ef22687a13a70c
https://blog.apar.jp/linux/334/
The solution of Zabbix and MySQL cannot be connected with Nginx under centos6.5