Alma linux 9 issue with nginx and php
by newalmauser from LinuxQuestions.org on (#6N6C6)
Hi,
I have a brand new alma linux 9 setup. So first I setup the nginx from its original nginx repo. Then I followed this link Quote:
to install php8.3.
Here conf file Quote:
from Quote:
. I have replace all the apache user to nginx in that conf. The issue comes with Code:nginx: [emerg] no port in upstream "php-fpm" in /etc/nginx/default.d/php.conf:13. Below is the content of that file
Quote:
I have tried putting fastcgi_pass php-fpm:9000; still the same it does not work. What other settings is need to over come this usse?
I have a brand new alma linux 9 setup. So first I setup the nginx from its original nginx repo. Then I followed this link Quote:
https://www.linuxtechi.com/install-p...nux-almalinux/ |
Here conf file Quote:
https://pastebin.com/4fcYt9kj |
/etc/php-fpm.d/www.conf |
Quote:
# pass the PHP scripts to FastCGI server # # See conf.d/php-fpm.conf for socket configuration # index index.php index.html index.htm; location ~ \.php$ { try_files $uri =404; fastcgi_intercept_errors on; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass php-fpm; } |