LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   start httpd failed (http://www.linuxquestions.org/questions/linux-general-1/start-httpd-failed-4175460307/)

C3phalex1n_0x 05-01-2013 11:25 AM

start httpd failed
 
Hi guys...!
i Have A really problem with HTTPD;
Guys today, after i'm installed Mod_security and then to restart httpd services displayed this error in the following for me! and my web site is downed.

Code:

# /etc/rc.d/init.d/httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for me.oopssec.ir
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Wed May 01 12:19:49 2013] [error] (EAI 2)Name or service not known: Failed to resolve server name for 198.50.166.208 (check DNS) -- or specify an explicit ServerName

How i can solve it?!
Sorry for bad english speaking..

bathory 05-01-2013 12:09 PM

Quote:

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Wed May 01 12:19:49 2013] [error] (EAI 2)Name or service not known: Failed to resolve server name for 198.50.166.208 (check DNS) -- or specify an explicit ServerName
You can add
Code:

ServerName me.oopssec.ir
in apache config (assuming me.oopssec.ir is your hostname).
If you don't have a dns server for your domain, you can also use in /etc/hosts the following
Code:

198.50.166.208 me.oopssec.ir
Regards

unSpawn 05-01-2013 01:39 PM

*Do note his zone is not as it should be as all four items (the domain name itself, the single(!) mail host record and both name servers) all point to the same IP address...


All times are GMT -5. The time now is 11:50 PM.