location ~ ^/(config|tmp|core|lang|plugins|vendor) deny all; return 403;
Enable the site and reload Nginx:
location ~ \.php$ include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php8.2-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; 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. location ~ ^/(config|tmp|core|lang|plugins|vendor) deny all
location ~ /\.ht deny all;