LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2012, 10:53 AM   #1
mmaserati
LQ Newbie
 
Registered: Apr 2012
Distribution: CENT OS 6
Posts: 2

Rep: Reputation: Disabled
Exclamation Apache throwing weird error


After rebooting My CENTOS 6 VMWare server I am getting an error trying to start Apache:
Code:
Starting httpd: [Thu Apr 05 11:41:53 2012] [error] (EAI 2)Name or service not known: Failed to resolve server name for x.x.x.x (check DNS) -- or specify an explicit ServerName
[Thu Apr 05 11:41:53 2012] [error] (EAI 2)Name or service not known: Failed to resolve server name for 172.25.1.7 (check DNS) -- or specify an explicit ServerName

I change the real ip to x.x.x.x for security purposes in this thread.

I have tried everything I can think of. The httpd file settings say look in the vhost.conf file so anything I do is in the vhost file

Anyone that can help is greatly appreciated
 
Old 04-05-2012, 11:37 AM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Put the following into your /etc/httpd/conf/httpd.conf

Code:
ServerName "www.yourfullyqualifieddomaninname.com"


---------- Post added 04-05-12 at 09:38 AM ----------

You can also add a line to your /etc/hosts file mapping your IP to a hostname.
 
Old 04-13-2012, 10:06 AM   #3
mmaserati
LQ Newbie
 
Registered: Apr 2012
Distribution: CENT OS 6
Posts: 2

Original Poster
Rep: Reputation: Disabled
Smile

tried that and found solution was a dns issue. The name of the server was not resolving basically.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache installation error in linux ,it is throwing following ckiran04 Linux - Server 1 11-22-2011 11:01 PM
[SOLVED] If condition is throwing error vishnukumar Programming 3 11-01-2010 08:09 AM
Weird apache error q_ware Linux - Networking 2 12-30-2004 10:28 AM
SuSE YOU - throwing error neocookie Linux - Software 3 10-25-2004 02:58 PM
Apache 2.0.52 weird error access control.. latino Linux - Networking 0 10-12-2004 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:26 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