LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-01-2013, 11:25 AM   #1
C3phalex1n_0x
LQ Newbie
 
Registered: Feb 2012
Location: Iran, republic of
Distribution: Mepis
Posts: 15

Rep: Reputation: Disabled
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..
 
Old 05-01-2013, 12:09 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,168
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
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

Last edited by bathory; 05-01-2013 at 12:10 PM.
 
1 members found this post helpful.
Old 05-01-2013, 01:39 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
*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...
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Httpd failed to start halfstep Linux - Server 7 01-29-2010 06:41 PM
pdo_mysql causes my php to fail and httpd failed to start syedbadz Linux - Server 2 08-20-2009 02:54 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
httpd won't start?? [Failed] flipside Linux - Software 8 05-21-2006 07:13 AM
Apache httpd start failed on fedora core 1 k_1701 Linux - Software 10 05-05-2006 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration