Nginx ve php74-php-fpm kurdum. Lakin index.php veya herhangi bir *.php dosyaları 404 hatası ile sonuclanıyor. Dosya olsa bile yok diyor. Apache'de php calışıyor ama ben nginx kullanmak istiyorum. Bunun cozumu nedir?
/etc/nginx/nginx.conf
Kod:Panoya kopyala
# For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/ user nginx; worker_processes auto; error_log /var/log/nginx/error.log notice; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events http error_page 500 502 503 504 /50x.html; location = /50x.html } # Settings for a TLS enabled server. # # server # # error_page 500 502 503 504 /50x.html; # location = /50x.html # } }

/etc/nginx/conf.d/php-fpm.conf
Kod:Panoya kopyala
# PHP-FPM FastCGI server # network or unix domain socket configuration upstream php-fpm

ls -al /var/opt/remi/php74/run/php-fpm/www.sock
Kod:Panoya kopyala
srwxr-xr-x+ 1 root root 0 Eki 28 23:07 /var/opt/remi/php74/run/php-fpm/www.sock