I can't start hhtpd service

General support questions
Post Reply
zahedjoy009
Posts: 2
Joined: 2017/03/26 15:49:42

I can't start hhtpd service

Post by zahedjoy009 » 2017/03/26 15:58:24

I am very new in using Linux. I am using Centos 7 of vmware. I wanted to start the httpd but i am facing some problems. Please help.

[root@tbcl conf]# systemctl status -l httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-03-27 21:28:14 BDT; 1min 3s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 5590 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 5589 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 5589 (code=exited, status=1/FAILURE)

Mar 27 21:28:14 tbcl httpd[5589]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.176.129. Set the 'ServerName' directive globally to suppress this message
Mar 27 21:28:14 tbcl httpd[5589]: (98)Address already in use: AH00072: make_sock: could not bind to address 192.168.176.129:80
Mar 27 21:28:14 tbcl httpd[5589]: no listening sockets available, shutting down
Mar 27 21:28:14 tbcl httpd[5589]: AH00015: Unable to open logs
Mar 27 21:28:14 tbcl systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 27 21:28:14 tbcl kill[5590]: kill: cannot find process ""
Mar 27 21:28:14 tbcl systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 27 21:28:14 tbcl systemd[1]: Failed to start The Apache HTTP Server.
Mar 27 21:28:14 tbcl systemd[1]: Unit httpd.service entered failed state.
Mar 27 21:28:14 tbcl systemd[1]: httpd.service failed.

[root@tbcl conf]# systemctl start httpd
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I can't start hhtpd service

Post by TrevorH » 2017/03/26 17:06:43

Mar 27 21:28:14 tbcl httpd[5589]: (98)Address already in use: AH00072: make_sock: could not bind to address 192.168.176.129:80
Is 192.168.176.129 on this machine? Is it up? Is anything already listening on that port on that ip?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

zahedjoy009
Posts: 2
Joined: 2017/03/26 15:49:42

Re: I can't start hhtpd service

Post by zahedjoy009 » 2017/03/26 17:38:47

I have changed in vhost.conf file. before it was <virtualhost 192.168.176.129:80.....virtualhost> and now i changed it to "*:80" and now its showing "AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.176...s message".
[root@tbcl conf.d]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.176.129 tbcl tbcl.example.com

this is the setting in my /etc/hosts file. what should i do?

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I can't start hhtpd service

Post by TrevorH » 2017/03/27 11:50:09

I have changed in vhost.conf file. before it was <virtualhost 192.168.176.129:80.....virtualhost> and now i changed it to "*:80" and now its showing "AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.176...s message".
That's a warning/info message not an error so httpd should be running unless you missed an error.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

bertalanimre
Posts: 140
Joined: 2015/06/02 13:04:03

Re: I can't start hhtpd service

Post by bertalanimre » 2017/03/28 08:01:01

May I troll a little bit by saying: Use NginX? :lol:

Post Reply