NGINX PHP НЕ РАБОТАЕТ
sudo apt-get update
sudo apt-get install nginx php-fpm
sudo service nginx start
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
import subprocess
log = subprocess.run('tail /var/log/php7.4-fpm.log', capture_output=True, text=True)
print(log.stdout)
sudo service nginx reload
Install and setup NGINX + PHP-FPM on FreeBSD
Install \u0026 Setup PHP and Nginx on Ubuntu Linux with FPM
TUTORIAL Setup Web Server (NGINX + PHP-FPM + MYSQL) - LANGSUNG BISA!!!
Beginner DevOps - How to Install PHP on NGINX
How to fix nginx \
Nginx php-fpm File not found - Nginx File not found - File not found
How to Configure PHP and NGINX on Windows 10/8/7
How to Configure PHP for Nginx with PHP-FPM on Ubuntu
PHP and Docker - Nginx Configuration (php-fpm)
Install and Configure PHP 8.1 in Nginx Web Server with PHP-FPM on Ubuntu 22.04 LTS Desktop - 2023