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, 2020 in Linux Administration by akhtar
• 38,260 points
6,050 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, 2020 by MD
• 95,460 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 14, 2019 in Linux Administration by Kiara
37,976 views
0 votes
2 answers

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

Hi guys I was facing same problem as ...READ MORE

answered Nov 21, 2020 in Linux Administration by anonymous
• 140 points
45,601 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, 2020 in Linux Administration by MD
• 95,460 points
17,590 views
0 votes
1 answer
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

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

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
4,069 views
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, 2020 in Linux Administration by MD
• 95,460 points
14,312 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP