The production support team of xFusionCorp Industries has deployed some of the latest monitoring tools to keep an eye on every service, application, etc. running on the systems. One of the monitoring systems reported about Apache service unavailability on one of the app servers in Stratos DC
.
Task:
Identify the faulty app host and fix the issue. Make sure Apache service is up and running on all app hosts. They might not have hosted any code yet on these servers, so you don’t need to worry if Apache isn’t serving any pages. Just make sure the service is up and running. Also, make sure Apache is running on port 8088
on all app servers.
ssh tony@stapp01
systemctl status httpd -l
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2025-09-10 08:25:22 UTC; 5min ago
-- Snipped --
Sep 10 08:25:22 stapp01.stratos.xfusioncorp.com httpd[799]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8088 <-- Address/port in use elsewhere
Determine what is running on this port and then kil it. Note if you don't run the command as sudo you don't get back the full results:
# Without sudo
[tony@stapp01 ~]$ netstat -tulpn | grep 8088
(No info could be read for "-p": geteuid()=1000 but you should be root.)
tcp 0 0 127.0.0.1:8088 0.0.0.0:* LISTEN
# With sudo
[tony@stapp01 ~]$ sudo netstat -tulpn | grep 8088
tcp 0 0 127.0.0.1:8088 0.0.0.0:* LISTEN 774/sendmail: accep
Kill the process using it's id - 774
sudo kill 774
#Verify that its been killed
sudo netstat -tulpn | grep 8088 - expected result should be nothing returned
#Restart and check status
sudo systemctl restart httpd
sudo systemctl status httpd
#Verify with curl
curl http://stapp01@8088
Repeat the same process for stapp02
and stapp03
to ensure they are both running as normal.