Failed to start the Apache service

0 votes

Hi Guys,

I am trying to start httpd service in my Linux system, but it is showing me the below error.

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 2017-03-05 15:52:12 PST; 6s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 4115 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 4110 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 4110 (code=exited, status=1/FAILURE)
Jun 22 11:52:12 localhost.localdomain httpd[4110]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Jun 22 11:52:12 localhost.localdomain httpd[4110]: (98)Address already in use: AH00072: make_sock: could not bind to address ...0.0:80
Jun 22 11:52:12 localhost.localdomain httpd[4110]: no listening sockets available, shutting down
Jun 22 11:52:12 localhost.localdomain httpd[4110]: AH00015: Unable to open logs
Jun 22 11:52:12 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jun 22 11:52:12 localhost.localdomain kill[4115]: kill: cannot find process ""
Jun 22 11:52:12 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 22 11:52:12 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Jun 22 11:52:12 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Jun 22 11:52:12 localhost.localdomain systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

How can I solve this error?

Jun 22 in Linux Administration by akhtar
• 18,250 points
103 views

1 answer to this question.

0 votes

Hi@akhtar,

I think port no. is busy. Some other program is using this port no. You need to find out what program is occupying port 80. You can use the below-given command to find out the status of port 80.

$ netstat -tnlp | grep :80

Then kill that process and restart the apache service.

answered Jun 22 by MD
• 42,420 points

Related Questions In Linux Administration

0 votes
1 answer

Error saying "Failed to start httpd.service: Unit httpd.service not found."

Execute the following steps or make sure ...READ MORE

answered May 13, 2019 in Linux Administration by Kiara
6,340 views
0 votes
1 answer

Job for httpd.service failed because the control process exited with error code.

Hi@akhtar, This problem is caused due to SELinux. It ...READ MORE

answered Apr 23 in Linux Administration by MD
• 42,420 points
690 views
+1 vote
1 answer

Failed to start Crash recovery kernel arming.

Hi@akhtar, To avoid this error you can follow ...READ MORE

answered May 11 in Linux Administration by MD
• 42,420 points
1,151 views
0 votes
1 answer
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,204 views
0 votes
0 answers
+4 votes
6 answers
0 votes
1 answer

Failed to start httpd.service: Unit httpd.service is masked.

Hi@akhtar, A masked service is used to prevent ...READ MORE

answered Apr 23 in Linux Administration by MD
• 42,420 points
331 views