Ad Widget

Collapse

Zabbix with ispconfig, php-fpm and nginx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stix
    Junior Member
    • Dec 2013
    • 1

    #1

    Zabbix with ispconfig, php-fpm and nginx

    Hi all,
    I running on:
    debian 6.0.8
    php 5.3.27 (php5-fpm)
    mysql 5.5.31
    ispconfig 3.0.5.3

    Install zabbix 2.0 from tutorial in docs and try to setup nginx and ispconfig. Create new site in isp, turn on and create ssl, turn on socket for php and edit these settings:

    php open_basedir > add:
    Code:
    /usr/share/zabbix:/usr/share/fonts
    custom php.ini:
    Code:
    display_errors=1
    max_execution_time=300
    memory_limit=128M
    post_max_size=16M
    upload_max_filesize=2M
    max_input_time=300
    date.timezone=Europe/Prague
    nginx directives
    Code:
    location /zabbix {
            if ($scheme ~ ^http:){
                rewrite ^(.*)$  https://$host$1 permanent;
            }
    	alias			/usr/share/zabbix;
    	index			index.php;
    	error_page		403 404 502 503 504  /zabbix/index.php;
    
    	location ~ \.php$ {
    		if (!-f $request_filename) { return 404; }
    		expires			epoch;
                    fastcgi_index	index.php;
    		fastcgi_pass	unix:/var/lib/php5-fpm/web29.sock;
           }
    
    	location ~ \.(jpg|jpeg|gif|png|ico)$ {
    		access_log	off;
    		expires		33d;
    	}
    
    }
    And now after go to site.com/zabbix/ i see working redirect to https but there is only blank page (totally blank - empty source code). I check php error log for zabbix vhost and it's empty too. Can anybody help?
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Did you check nginx log?
    Check https://bbs.archlinux.org/viewtopic.php?id=101750 for some common issues nginx+php-fpm.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • R0m
      Junior Member
      • Jan 2020
      • 2

      #3
      Please, check the following template. It supports all types of pools (dynamic, static, ondemand), that listen via TCP and socket, and supports ISPConfig https://github.com/rvalitov/zabbix-php-fpm
      Works with nginx and Apache.

      Comment

      Working...