Did you ever come a cross a situation of getting this error??
I got :) Actually I have installed Apache on a CentOS server and I wanted to start it. So I used the following command on a Putty, i.e the SSH Client I have used to connect to the server.
cmd -> sudo service httpd restart
output ->
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 10.157.1.134 for ServerName
[ OK ]
So I was unable to start the Apache server. So I checked why I got this error. And I again tired for the command httpd, to check whether the server can identify the service,
cmd -> httpd
output -> httpd: Could not reliably determine the server's fully qualified domain name, using
10.157.1.134 for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
According to the error message I got, it pointed out the error, that is, it can not determine the domain name. So I have checked the Apache httpd.conf file.
cmd -> vim /etc/httpd/conf/httpd.conf
And checking through it, I have found out that there was actually no qualified server name under the section #ServerName . So I have added the server name i wanted and it was like this.
previous -> #ServerName www.example.com:80
new -> ServerName 10.157.1.134:80
And I have tried the Apache restart command again and it worked as expected. :)
cmd -> /etc/init.d/httpd restart
output ->
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Hope this will help some one else too !! :)
cheers!
"do good and good wi come to you!"
No comments:
Post a Comment