Linux process troubleshooting failed

when i starting the httpd server i getting failed like in below how to solve it

httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2020-05-31 06:34:53 UTC; 7min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 491 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 490 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 490 (code=exited, status=1/FAILURE)

May 31 06:34:53 stapp01 httpd[490]: AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 172.16.238.10. Set the ‘ServerName’ directive globallyto suppress this message
May 31 06:34:53 stapp01 httpd[490]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8083
May 31 06:34:53 stapp01 httpd[490]: no listening sockets available, shutting down
May 31 06:34:53 stapp01 httpd[490]: AH00015: Unable to open logs
May 31 06:34:53 stapp01 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 31 06:34:53 stapp01 kill[491]: kill: cannot find process “”
May 31 06:34:53 stapp01 systemd[1]: httpd.service: control process exited, code=exited status=1
May 31 06:34:53 stapp01 systemd[1]: Failed to start The Apache HTTP Server.
May 31 06:34:53 stapp01 systemd[1]: Unit httpd.service entered failed state.
May 31 06:34:53 stapp01 systemd[1]: httpd.service failed.

Perhaps,you haven’t made appropriate changes in httpd.conf file.
You can check using:

#httpd -t

to check whether you have made any syntax errors as well.

[email protected] tony]# httpd -t
AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using 172.16.238.10. Set the ‘ServerName’ directive globally to suppress this message
Syntax OK

The error clearly states there is some issue with server name , check once in the file is the server name set correctly or not.

May 31 06:34:53 stapp01 httpd[490]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8083

Look at this Error. It is because of port unavailability, just need free the port and start the application

1 Like

If you see his reply his file states a different issue,
" Set the ‘ServerName’ directive globally to suppress this message"
which is not the issue you stated.

The output suggests two errors but just the second one will prevent the service to be started, which is the end goal for the task

You can run #netstat -tulpn | grep 8083

to determine the status of the port