Связка Nginx + PHP-FPM на VPS нужна WordPress, Laravel и любым PHP-сайтам.
apt install -y nginx php-fpm php-cli
php -v
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
}
Проверьте путь к сокету под вашу версию PHP.
nginx -t && systemctl reload nginx