The solution of Zabbix and MySQL cannot be connected with Nginx under centos6.5

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.