Install: Piwis 3
server listen 80; server_name stats.yourdomain.com; root /var/www/piwis; index index.php; location / try_files $uri $uri/ =404;
location ~ ^/(config|tmp|core|lang|plugins|vendor) deny all; return 403; piwis 3 install
cd /var/www sudo wget https://github.com/piwis/piwis/releases/download/3.0.0/piwis-3.0.0.zip sudo unzip piwis-3.0.0.zip -d piwis sudo chown -R www-data:www-data /var/www/piwis sudo chmod -R 755 /var/www/piwis/tmp Replace 3.0.0 with the actual latest version from the official releases page . Log into MySQL and create a database and user for Piwis. server listen 80; server_name stats