@m-blc opened this Issue on March 26th 2016


I have an huge issue with piwik since we decided to migrate our infra from Debian to FreeBSD. I installed piwik any times and I know very well the installation process, I make a fresh installation for testing but the problem persists : my webpage is blank.

There's nothing in my logs except access traces: - - [26/Mar/2016:17:36:32 +0100] "GET / HTTP/2.0" 200 154 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0"

There is my configuration files


load_module modules/ngx_stream_module.so;
load_module modules/ngx_http_image_filter_module.so;
load_module modules/ngx_http_geoip_module.so;

#user  nobody;
worker_processes  4;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;

events {
    worker_connections  2048;

http {
    include       mime.types;
    default_type  application/octet-stream;

    include /usr/local/etc/nginx/sites-enabled/*;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    gzip  on;

Nginx vhost concerned:

server {
  listen 80;
  server_name stats.unixcorn.org;
  # enforce https
  return 301 https://$server_name$request_uri;

server {
  listen 443 ssl http2;
  server_name stats.unixcorn.org;

  # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate
  ssl_certificate /usr/local/etc/letsencrypt/live/unixcorn.org/fullchain.pem;
  ssl_certificate_key /usr/local/etc/letsencrypt/live/unixcorn.org/privkey.pem;
  ssl_session_timeout 1d;
  ssl_session_cache shared:SSL:50m;
  ssl_session_tickets off;

  # modern configuration. tweak to your needs.
  ssl_protocols TLSv1.1 TLSv1.2;
  ssl_prefer_server_ciphers on;

  # Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits
  ssl_dhparam /usr/local/etc/ssl/dhparams.pem;

  # HSTS (ngx_http_headers_module is required) (15768000 seconds = 6 months)
  add_header Strict-Transport-Security max-age=15768000;

        root /var/www/htdocs/stats.unixcorn.org/piwik/;
        index index.php index.html index.htm;

        location / {
                    try_files $uri $uri/ /index.html;

        location ~ \.php$ {
                        include fastcgi_params;
                        fastcgi_index index.php;
                        fastcgi_param PHP_VALUE "max_execution_time=1800


Hope somebody can help, I can provide any configuration files for debugging.
Thanks in advance.

@m-blc commented on March 27th 2016


I found the problem, I don't know really why but it like an incompatibility between index index.php & fastcgi_index index.php;. I just deleted the last line and now it works !
Sorry for the noise.


This Issue was closed on March 27th 2016
Powered by GitHub Issue Mirror