- 'nginx' is not using correct port on App Server 3

The Nautilus application development team is planning to launch a new PHP-based application, which they want to deploy on Nautilus infra in Stratos DC. The development team had a meeting with the production support team and they have shared some requirements regarding the infrastructure. Below are the requirements they shared:

a. Install nginx on app server 3 , configure it to use port 8099 and its document root should be /var/www/html.

b. Install php-fpm version 8.3 on app server 3, it must use the unix socket /var/run/php-fpm/default.sock (create the parent directories if don’t exist).

c. Configure php-fpm and nginx to work together.

d. Once configured correctly, you can test the website using curl http://stapp03:8099/index.php command from jump host.
NOTE: We have copied two files, index.php and info.php, under /var/www/html as part of the PHP-based application setup. Please do not modify these files.

Answer:-

[root@stapp03 ~]# nginx -v
nginx version: nginx/1.20.1
[root@stapp03 ~]# dnf module list php
Last metadata expiration check: 0:00:12 ago on Thu Aug 13 04:32:43 2026.
CentOS Stream 9 - AppStream
Name Stream Profiles Summary
php 8.1 common [d], devel, minimal PHP scripting language
php 8.2 common [d], devel, minimal PHP scripting language
php 8.3 common [d], devel, minimal PHP scripting language

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@stapp03 ~]# dnf module enable php:8.3 -y
Last metadata expiration check: 0:00:23 ago on Thu Aug 13 04:32:43 2026.
Dependencies resolved.

Package Architecture Version Repository Size

Enabling module streams:
php 8.3

Transaction Summary

Complete!
[root@stapp03 ~]# dnf install -y php php-fpm php-cli php-common php-mbstring php-opcache php-pdo php-xml

[root@stapp03 ~]# php -v
php-fpm -v
PHP 8.3.19 (cli) (built: Mar 12 2025 13:10:27) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.3.19, Copyright (c) Zend Technologies
with Zend OPcache v8.3.19, Copyright (c), by Zend Technologies
PHP 8.3.19 (fpm-fcgi) (built: Mar 12 2025 13:10:27)
Copyright (c) The PHP Group
Zend Engine v4.3.19, Copyright (c) Zend Technologies
with Zend OPcache v8.3.19, Copyright (c), by Zend Technologies
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# mkdir -p /var/run/php-fpm
[root@stapp03 ~]# cp /etc/php-fpm.d/www.conf /etc/php-fpm.d/www.conf.bak
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# sed -i ‘s/^user = ./user = nginx/’ /etc/php-fpm.d/www.conf
sed -i 's/^group = .
/group = nginx/’ /etc/php-fpm.d/www.conf
sed -i ‘s|^listen = .|listen = /var/run/php-fpm/default.sock|’ /etc/php-fpm.d/www.conf
[root@stapp03 ~]#
[root@stapp03 ~]# sed -i 's/^;listen.owner = .
/listen.owner = nginx/’ /etc/php-fpm.d/www.conf
sed -i ‘s/^;listen.group = ./listen.group = nginx/’ /etc/php-fpm.d/www.conf
sed -i 's/^;listen.mode = .
/listen.mode = 0660/’ /etc/php-fpm.d/www.conf
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# sed -i ‘/^listen.allowed_clients/d’ /etc/php-fpm.d/www.conf
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# grep -nE ‘^(user|group|listen|listen.owner|listen.group|listen.mode)’ /etc/php-fpm.d/www.conf
24:user = nginx
26:group = nginx
38:listen = /var/run/php-fpm/default.sock
48:listen.owner = nginx
49:listen.group = nginx
50:listen.mode = 0660
55:listen.acl_users = apache,nginx
[root@stapp03 ~]# php-fpm -t
[13-Aug-2026 04:34:22] NOTICE: configuration file /etc/php-fpm.conf test is successful
[root@stapp03 ~]#
[root@stapp03 ~]# systemctl enable --now php-fpm
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /usr/lib/systemd/system/php-fpm.service.
[root@stapp03 ~]#
[root@stapp03 ~]# systemctl is-active php-fpm
systemctl is-enabled php-fpm
active
enabled
[root@stapp03 ~]#
[root@stapp03 ~]# ls -l /var/run/php-fpm/default.sock
srw-rw----+ 1 root root 0 Aug 13 04:34 /var/run/php-fpm/default.sock
[root@stapp03 ~]# cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# cat > /etc/nginx/nginx.conf <<‘EOF’
user nginx;
worker_processes auto;

error_log /var/log/nginx/error.log;
pid /run/nginx.pid;

include /usr/share/nginx/modules/*.conf;

events {
worker_connections 1024;
}

http {
log_format main '$remote_addr - $remote_user [$time_local] “$request” ’
'$status $body_bytes_sent “$http_referer” ’
‘“$http_user_agent” “$http_x_forwarded_for”’;

access_log /var/log/nginx/access.log main;

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 4096;

include /etc/nginx/mime.types;
default_type application/octet-stream;

include /etc/nginx/conf.d/*.conf;

}
EOF
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# mkdir -p /etc/nginx/conf.d
[root@stapp03 ~]# cat > /etc/nginx/conf.d/php-app.conf <<‘EOF’
server {
listen 8099;
listen [::]:8099;

server_name stapp03;

root /var/www/html;
index index.php index.html;

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
    try_files $uri =404;

    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php-fpm/default.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

location ~ /\.ht {
    deny all;
}

}
EOF
[root@stapp03 ~]#
[root@stapp03 ~]# cat /etc/nginx/conf.d/php-app.conf
server {
listen 8099;
listen [::]:8099;

server_name stapp03;

root /var/www/html;
index index.php index.html;

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

location ~ \.php$ {
    try_files $uri =404;

    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php-fpm/default.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

location ~ /\.ht {
    deny all;
}

}
[root@stapp03 ~]#
[root@stapp03 ~]# ls -lah /var/www/html/
total 16K
drwxr-xr-x 2 root root 4.0K Jun 1 13:26 .
drwxr-xr-x 4 root root 4.0K Aug 13 04:33 …
-rw-r–r-- 1 root root 51 Aug 13 04:29 index.php
-rw-r–r-- 1 root root 42 Aug 13 04:29 info.php
[root@stapp03 ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@stapp03 ~]# sysstemctl restart php-fpm
-bash: sysstemctl: command not found
[root@stapp03 ~]# systemctl restart php-fpm
[root@stapp03 ~]# systemctl restart nginx
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# nginx -T 2>&1 | grep -nE ‘listen|server_name|root|fastcgi_pass|SCRIPT_FILENAME’
136: listen 8099;
137: listen [::]:8099;
139: server_name stapp03;
141: root /var/www/html;
152: fastcgi_pass unix:/var/run/php-fpm/default.sock;
154: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
172:fastcgi_param DOCUMENT_ROOT $document_root;
184:fastcgi_param SERVER_NAME $server_name;
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# grep -RniE ‘[1]*listen[[:space:]]+80’ /etc/nginx
/etc/nginx/nginx.conf.bak:39: listen 80;
/etc/nginx/conf.d/php-app.conf:2: listen 8099;
/etc/nginx/nginx.conf.default:36: listen 80;
[root@stapp03 ~]# systemctl restart php-fpm
systemctl restart nginx
[root@stapp03 ~]# systemctl is-active php-fpm
systemctl is-enabled php-fpm

systemctl is-active nginx
systemctl is-enabled nginx
active
enabled
active
disabled
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# ls -l /var/run/php-fpm/default.sock
srw-rw----+ 1 root root 0 Aug 13 04:37 /var/run/php-fpm/default.sock
[root@stapp03 ~]#

[root@stapp03 ~]# ss -lx | grep default.sock
u_str LISTEN 0 4096 /var/run/php-fpm/default.sock 1258162775 * 0
[root@stapp03 ~]# ss -lx | grep default.sock
u_str LISTEN 0 4096 /var/run/php-fpm/default.sock 1258162775 * 0
[root@stapp03 ~]# ls -l /var/run/php-fpm/default.sock
srw-rw----+ 1 root root 0 Aug 13 04:37 /var/run/php-fpm/default.sock
[root@stapp03 ~]#
[root@stapp03 ~]# ss -lntp | grep nginx
LISTEN 0 511 0.0.0.0:8099 0.0.0.0:* users:((“nginx”,pid=32052,fd=6),(“nginx”,pid=32051,fd=6),(“nginx”,pid=32050,fd=6),(“nginx”,pid=32049,fd=6),(“nginx”,pid=32048,fd=6),(“nginx”,pid=32047,fd=6),(“nginx”,pid=32046,fd=6),(“nginx”,pid=32045,fd=6),(“nginx”,pid=32044,fd=6),(“nginx”,pid=32043,fd=6),(“nginx”,pid=32042,fd=6),(“nginx”,pid=32041,fd=6),(“nginx”,pid=32040,fd=6),(“nginx”,pid=32039,fd=6),(“nginx”,pid=32038,fd=6),(“nginx”,pid=32037,fd=6),(“nginx”,pid=32036,fd=6))
LISTEN 0 511 [::]:8099 [::]:* users:((“nginx”,pid=32052,fd=7),(“nginx”,pid=32051,fd=7),(“nginx”,pid=32050,fd=7),(“nginx”,pid=32049,fd=7),(“nginx”,pid=32048,fd=7),(“nginx”,pid=32047,fd=7),(“nginx”,pid=32046,fd=7),(“nginx”,pid=32045,fd=7),(“nginx”,pid=32044,fd=7),(“nginx”,pid=32043,fd=7),(“nginx”,pid=32042,fd=7),(“nginx”,pid=32041,fd=7),(“nginx”,pid=32040,fd=7),(“nginx”,pid=32039,fd=7),(“nginx”,pid=32038,fd=7),(“nginx”,pid=32037,fd=7),(“nginx”,pid=32036,fd=7))
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# ss -lntp | grep ':80 ’ || echo “NO PORT 80”
NO PORT 80
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# nginx -T 2>&1 | grep -n ‘server_name’
139: server_name stapp03;
184:fastcgi_param SERVER_NAME $server_name;
[root@stapp03 ~]#
[root@stapp03 ~]# curl http://localhost:8099/index.php
Welcome to xFusionCorp Industries![root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# curl -I http://localhost:8099/index.php
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Thu, 13 Aug 2026 04:39:16 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/8.3.19

[root@stapp03 ~]# curl -I http://localhost:8099/info.php
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Thu, 13 Aug 2026 04:39:24 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/8.3.19

[root@stapp03 ~]#
[root@stapp03 ~]# curl http://localhost:8099/info.php | head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0

body {background-color: #fff; color: #222; font-family: sans-serif;} pre {margin: 0; font-family: monospace;} a:link {color: #009; text-decoration: none; background-color: #fff;} a:hover {text-decoration: underline;} table {border-collapse: collapse; border: 0; width: 934px; box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.2);} .center {text-align: center;} .center table {margin: 1em auto; text-align: left;} 100 44968 0 44968 0 0 42.8M 0 --:--:-- --:--:-- --:--:-- 42.8M curl: (23) Failure writing output to destination [root@stapp03 ~]# logout [banner@stapp03 ~]$ logout Connection to stapp03 closed. thor@jump-host ~$ thor@jump-host ~$ curl http://stapp03:8099/index.php Welcome to xFusionCorp Industries!thor@jump-host ~$ thor@jump-host ~$ thor@jump-host ~$ thor@jump-host ~$ thor@jump-host ~$ ssh banner@stapp03 banner@stapp03's password: Last login: Thu Aug 13 04:32:11 2026 from 10.244.226.215 [banner@stapp03 ~]$ sudo -i [sudo] password for banner: [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# [root@stapp03 ~]# echo "===== SERVER =====" hostname

echo “===== NGINX VERSION =====”
nginx -v

echo “===== PHP VERSION =====”
php -v | head -n 1

echo “===== PHP-FPM VERSION =====”
php-fpm -v | head -n 1

echo “===== PHP-FPM CONFIG =====”
grep -nE ‘^(user|group|listen|listen.owner|listen.group|listen.mode)’ /etc/php-fpm.d/www.conf

echo “===== PHP-FPM SERVICE =====”
systemctl is-active php-fpm
systemctl is-enabled php-fpm

echo “===== PHP SOCKET =====”
ls -l /var/run/php-fpm/default.sock

echo “===== NGINX SERVICE =====”
systemctl is-active nginx
systemctl is-enabled nginx

echo “===== NGINX CONFIG TEST =====”
nginx -t

echo “===== NGINX CONFIG =====”
nginx -T 2>&1 | grep -nE ‘listen|server_name|root|fastcgi_pass|SCRIPT_FILENAME’

echo “===== PORT 8099 =====”
ss -lntp | grep ':8099 ’

echo “===== PORT 80 =====”
ss -lntp | grep ':80 ’ || echo “NO PORT 80”

echo “===== SERVER NAME =====”
nginx -T 2>&1 | grep ‘server_name’

echo “===== DOCUMENT ROOT =====”
ls -ld /var/www/html
ls -l /var/www/html/index.php
curl -I http://localhost:8099/info.php
===== SERVER =====
stapp03
===== NGINX VERSION =====
nginx version: nginx/1.20.1
===== PHP VERSION =====
PHP 8.3.19 (cli) (built: Mar 12 2025 13:10:27) (NTS gcc x86_64)
===== PHP-FPM VERSION =====
PHP 8.3.19 (fpm-fcgi) (built: Mar 12 2025 13:10:27)
===== PHP-FPM CONFIG =====
24:user = nginx
26:group = nginx
38:listen = /var/run/php-fpm/default.sock
48:listen.owner = nginx
49:listen.group = nginx
50:listen.mode = 0660
55:listen.acl_users = apache,nginx
===== PHP-FPM SERVICE =====
active
enabled
===== PHP SOCKET =====
srw-rw----+ 1 root root 0 Aug 13 04:37 /var/run/php-fpm/default.sock
===== NGINX SERVICE =====
active
disabled
===== NGINX CONFIG TEST =====
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
===== NGINX CONFIG =====
136: listen 8099;
137: listen [::]:8099;
139: server_name stapp03;
141: root /var/www/html;
152: fastcgi_pass unix:/var/run/php-fpm/default.sock;
154: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
172:fastcgi_param DOCUMENT_ROOT $document_root;
184:fastcgi_param SERVER_NAME $server_name;
===== PORT 8099 =====
LISTEN 0 511 0.0.0.0:8099 0.0.0.0:* users:((“nginx”,pid=32052,fd=6),(“nginx”,pid=32051,fd=6),(“nginx”,pid=32050,fd=6),(“nginx”,pid=32049,fd=6),(“nginx”,pid=32048,fd=6),(“nginx”,pid=32047,fd=6),(“nginx”,pid=32046,fd=6),(“nginx”,pid=32045,fd=6),(“nginx”,pid=32044,fd=6),(“nginx”,pid=32043,fd=6),(“nginx”,pid=32042,fd=6),(“nginx”,pid=32041,fd=6),(“nginx”,pid=32040,fd=6),(“nginx”,pid=32039,fd=6),(“nginx”,pid=32038,fd=6),(“nginx”,pid=32037,fd=6),(“nginx”,pid=32036,fd=6))
LISTEN 0 511 [::]:8099 [::]:* users:((“nginx”,pid=32052,fd=7),(“nginx”,pid=32051,fd=7),(“nginx”,pid=32050,fd=7),(“nginx”,pid=32049,fd=7),(“nginx”,pid=32048,fd=7),(“nginx”,pid=32047,fd=7),(“nginx”,pid=32046,fd=7),(“nginx”,pid=32045,fd=7),(“nginx”,pid=32044,fd=7),(“nginx”,pid=32043,fd=7),(“nginx”,pid=32042,fd=7),(“nginx”,pid=32041,fd=7),(“nginx”,pid=32040,fd=7),(“nginx”,pid=32039,fd=7),(“nginx”,pid=32038,fd=7),(“nginx”,pid=32037,fd=7),(“nginx”,pid=32036,fd=7))
===== PORT 80 =====
NO PORT 80
===== SERVER NAME =====
server_name stapp03;
fastcgi_param SERVER_NAME $server_name;
===== DOCUMENT ROOT =====
drwxr-xr-x 2 root root 4096 Jun 1 13:26 /var/www/html
-rw-r–r-- 1 root root 51 Aug 13 04:29 /var/www/html/index.php
-rw-r–r-- 1 root root 42 Aug 13 04:29 /var/www/html/info.php
===== LOCAL PHP TEST =====
Welcome to xFusionCorp Industries!
===== LOCAL INFO TEST =====
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Thu, 13 Aug 2026 04:40:34 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/8.3.19

[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# systemctl is-active nginx
→ active

systemctl is-enabled nginx
→ disabled
active
-bash: →: command not found
disabled
-bash: →: command not found
[root@stapp03 ~]# systemctl enable nginx
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
[root@stapp03 ~]#
[root@stapp03 ~]# systemctl is-active nginx
systemctl is-enabled nginx
active
enabled
[root@stapp03 ~]# sed -i ‘/^listen.acl_users/d’ /etc/php-fpm.d/www.conf
[root@stapp03 ~]# systemctl restart php-fpm
[root@stapp03 ~]#
[root@stapp03 ~]# ls -l /var/run/php-fpm/default.sock
srw-rw---- 1 nginx nginx 0 Aug 13 04:42 /var/run/php-fpm/default.sock
[root@stapp03 ~]# systemctl is-active php-fpm
systemctl is-enabled php-fpm
active
enabled
[root@stapp03 ~]#
[root@stapp03 ~]# curl localhost:8099/index.php
Welcome to xFusionCorp Industries![root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]#
[root@stapp03 ~]# echo “===== 1. HOST =====”
hostname

echo “===== 2. NGINX ENABLED =====”
systemctl is-enabled nginx

echo “===== 3. NGINX ACTIVE =====”
systemctl is-active nginx

echo “===== 4. PHP-FPM ENABLED =====”
systemctl is-enabled php-fpm

echo “===== 5. PHP-FPM ACTIVE =====”
systemctl is-active php-fpm

echo “===== 6. PHP VERSION =====”
php -v | head -1

echo “===== 7. PHP-FPM SOCKET =====”
grep -E ‘[2](user|group|listen|listen.owner|listen.group|listen.mode)[[:space:]]=’ /etc/php-fpm.d/www.conf

echo “===== 8. SOCKET FILE =====”
ls -l /var/run/php-fpm/default.sock

echo “===== 9. NGINX CONFIG =====”
nginx -t

echo “===== 10. ACTIVE NGINX LISTEN =====”
nginx -T 2>&1 | grep -E ‘[3]*listen’

echo “===== 11. SERVER NAME =====”
nginx -T 2>&1 | grep -E ‘[4]*server_name’

echo “===== 12. DOCUMENT ROOT =====”
nginx -T 2>&1 | grep -E ‘[5]*root’

echo “===== 13. PHP HANDLER =====”
nginx -T 2>&1 | grep -E ‘fastcgi_pass|SCRIPT_FILENAME’

echo “===== 14. PORT 8099 =====”
ss -lntp | grep ':8099 ’

echo “===== 15. PORT 80 =====”
curl -s -I http://localhost:8099/info.php0"
===== 1. HOST =====
stapp03
===== 2. NGINX ENABLED =====
enabled
===== 3. NGINX ACTIVE =====
active
===== 4. PHP-FPM ENABLED =====
enabled
===== 5. PHP-FPM ACTIVE =====
active
===== 6. PHP VERSION =====
PHP 8.3.19 (cli) (built: Mar 12 2025 13:10:27) (NTS gcc x86_64)
===== 7. PHP-FPM SOCKET =====
user = nginx
group = nginx
listen = /var/run/php-fpm/default.sock
listen.owner = nginx
listen.group = nginx
listen.mode = 0660
===== 8. SOCKET FILE =====
srw-rw---- 1 nginx nginx 0 Aug 13 04:42 /var/run/php-fpm/default.sock
===== 9. NGINX CONFIG =====
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
===== 10. ACTIVE NGINX LISTEN =====
listen 8099;
listen [::]:8099;
===== 11. SERVER NAME =====
server_name stapp03;
===== 12. DOCUMENT ROOT =====
root /var/www/html;
===== 13. PHP HANDLER =====
fastcgi_pass unix:/var/run/php-fpm/default.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
===== 14. PORT 8099 =====
LISTEN 0 511 0.0.0.0:8099 0.0.0.0:* users:((“nginx”,pid=32052,fd=6),(“nginx”,pid=32051,fd=6),(“nginx”,pid=32050,fd=6),(“nginx”,pid=32049,fd=6),(“nginx”,pid=32048,fd=6),(“nginx”,pid=32047,fd=6),(“nginx”,pid=32046,fd=6),(“nginx”,pid=32045,fd=6),(“nginx”,pid=32044,fd=6),(“nginx”,pid=32043,fd=6),(“nginx”,pid=32042,fd=6),(“nginx”,pid=32041,fd=6),(“nginx”,pid=32040,fd=6),(“nginx”,pid=32039,fd=6),(“nginx”,pid=32038,fd=6),(“nginx”,pid=32037,fd=6),(“nginx”,pid=32036,fd=6))
LISTEN 0 511 [::]:8099 [::]:* users:((“nginx”,pid=32052,fd=7),(“nginx”,pid=32051,fd=7),(“nginx”,pid=32050,fd=7),(“nginx”,pid=32049,fd=7),(“nginx”,pid=32048,fd=7),(“nginx”,pid=32047,fd=7),(“nginx”,pid=32046,fd=7),(“nginx”,pid=32045,fd=7),(“nginx”,pid=32044,fd=7),(“nginx”,pid=32043,fd=7),(“nginx”,pid=32042,fd=7),(“nginx”,pid=32041,fd=7),(“nginx”,pid=32040,fd=7),(“nginx”,pid=32039,fd=7),(“nginx”,pid=32038,fd=7),(“nginx”,pid=32037,fd=7),(“nginx”,pid=32036,fd=7))
===== 15. PORT 80 =====
NO PORT 80
===== 16. APPLICATION =====
Welcome to xFusionCorp Industries!
===== 17. INFO.PHP =====
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Thu, 13 Aug 2026 04:43:34 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/8.3.19

[root@stapp03 ~]#

Where i am doing mistake tried multiple times…still getting error


  1. [:space:] ↩︎

  2. [:space:] ↩︎

  3. [:space:] ↩︎

  4. [:space:] ↩︎

  5. [:space:] ↩︎

Hi @manojrikhari19

Are you working on Day 20 of the 100 Days of DevOps Challenge? If so, please refer to this solution and try again: 100_Days_of_DevOps/100_Day_Tasks/Day_20:_Configure_Nginx _+_PHP-FPM_Using_Unix_Sock/Task.md at main · dpakGit/100_Days_of_DevOps · GitHub