O
O
Oleg Voitenko2015-02-06 13:30:17
Nginx
Oleg Voitenko, 2015-02-06 13:30:17

How to make zabbix friends with nginx and ispmanager?

People, tell me this thing:
I want to install Zabbix-server on an already running machine with the following parameters:
Centos 6 x64
ISP Manager 4 Pro
NGINX + Apache.
Zabbix has become. But the web muzzle does not want to start. It is in /usr/share/zabbix
In Apache, I created a config for zabbix in /etc/httpd/conf.d/zabbix.conf
Code:
#
# Zabbix monitoring system php web frontend
#
Alias ​​/zabbix/ /usr/share/zabbix
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value date.timezone Europe/Kiev
Order deny,allow
Deny from all
Order deny,allow
Deny from all
Order deny,allow
Deny from all
Order deny,allow
Deny from all
Order deny,allow
Deny from all
Order deny ,allow
Deny from all
Order deny,allow
Deny from all
Order deny,allow
Deny from all
In NGINX /etc/nginx/conf.d/zabbix.conf
Code:
server {
listen 80;
root /var/www/html;
access_log /var/log/nginx/zabbix.access.log;
server_name domain.org www.domain.org;
location / {
index index.php index.html index.htm;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
#Connect the Zabbix
location /zabbix {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/zabbix/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $request_filename;
include /etc/nginx/fastcgi_params;
}
location ~* ^/zabbix/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
}
I go to domain.com/zabbix, and there is an empty page, there is a cyclic redirect to https.
Through ssh by wget -S --no-check-certificate domain.com/zabbix
I find out that there is a 500 error.
The logs are generally silent about it.
Tell me, who is experienced in installing zabbix on the server configuration I specified, how can I start a web face?
PySy:
Sorry for the sheet, and I ask you not to kick, but to give specific advice. The experience of installing Zabbix was on a clean server, everything becomes there without problems. Feel free to ask clarifying questions, I'll be happy to answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hatifnatt, 2015-02-06
@Hatifnatt

Do you have phpMyAdmin installed? If so, take his config, probably here /etc/apache2/conf.d/phpmyadmin.conf, make a copy, correct it for zabbix and that's it. After this works, you can try to work with serving static with nginx.
And now you have a config for Apache and FastCGI is configured, but you should use one thing, or proxy requests to Apache, or FastCGI.
PS and use <code></code> tag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question