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;
Enable the site and reload Nginx:
CREATE DATABASE piwis_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'piwis_user'@'localhost' IDENTIFIED BY 'strong_password_here'; GRANT ALL PRIVILEGES ON piwis_db.* TO 'piwis_user'@'localhost'; FLUSH PRIVILEGES; EXIT; Create an Nginx config file for your Piwis domain. piwis 3 install
location ~ ^/(config|tmp|core|lang|plugins|vendor) deny all; return 403; location ~ \
location ~ /\.ht deny all;