Article 6N6C6 Alma linux 9 issue with nginx and php

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:
https://www.linuxtechi.com/install-p...nux-almalinux/
to install php8.3.
Here conf file Quote:
https://pastebin.com/4fcYt9kj
from Quote:
/etc/php-fpm.d/www.conf
. 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:
# 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;
}
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?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments