LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 05-18-2009, 01:05 PM   #1
Mytob
LQ Newbie
 
Registered: Aug 2008
Distribution: CentOS
Posts: 6

Rep: Reputation: 0
Apache Not Accepting Requests


Iv just got a new centos 5 vps and am trying to get apache going on it but am having real problems in doing so. It has come with Apache PHP and mySQL installed on by defult and I have the ip address. I have logged into it and fired it up initialy but got the following error message

Code:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
I asume it is binding it 127.0.0.1 and not listening to any requests on the external ip address. The hosts file contains the following

Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		localhost localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
I have fiddled with it so it looked like

Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		localhost.localdomain localhost

93.174.138.59		server.darkcry.com server
but it still did not work. Any ideas whats up? httpd.conf has not been changed.
 
Old 05-18-2009, 01:34 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Edit httpd.conf and use:
Code:
ServerName server.darkcry.com
Mind that server.darkcry.com resolves to a different ip from the one in your /etc/hosts
 
Old 05-19-2009, 07:44 AM   #3
Mytob
LQ Newbie
 
Registered: Aug 2008
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
Ok you have confused me lol! Looking at another server that I run the hosts file contains

Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		localhost.localdomain localhost

193.34.144.92		rbi0392.giga-dns.com rbi0392
You will find the ip and the address are not the same but yet Apache displays a page when you plug in the ip address in a browser. So im kinda lost at what you are trying to get at lol!
 
Old 05-19-2009, 09:19 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,773

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Just to clear things out:
The message you get is harmless. In fact it's just a warning and apache should start normally. To fix it use a Fully Qualified Domain Name (FQDN) for the ServerName directive in httpd.conf.
The file /etc/hosts is used to match a hostname with an ip. In your case I've just pointed out that server.darkcry.com resolves to a different ip, than the one in /etc/hosts.:
Quote:
dig server.darkcry.com

; <<>> DiG 9.6.1b1 <<>> server.darkcry.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55111
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4

;; QUESTION SECTION:
;server.darkcry.com. IN A

;; ANSWER SECTION:
server.darkcry.com. 20928 IN A 77.232.72.250

;; AUTHORITY SECTION:
darkcry.com. 20928 IN NS ns3.servage.net.
darkcry.com. 20928 IN NS ns1.servage.net.
darkcry.com. 20928 IN NS ns2.servage.net.
darkcry.com. 20928 IN NS ns4.servage.net.

;; ADDITIONAL SECTION:
ns1.servage.net. 69801 IN A 77.232.76.14
ns2.servage.net. 69801 IN A 217.70.34.151
ns3.servage.net. 69801 IN A 77.232.66.6
ns4.servage.net. 69801 IN A 77.232.81.1
So you have to check with your hosting company to find the correct IP, so that your server can be visible from the internet.

Regards

Last edited by bathory; 06-10-2009 at 05:11 PM.
 
Old 05-21-2009, 07:44 AM   #5
Mytob
LQ Newbie
 
Registered: Aug 2008
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for that! Il have a go with it now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Accepting only external requests metallica1973 Linux - Server 4 08-12-2008 12:35 AM
SSL not accepting requests. ryedunn Linux - Security 10 10-22-2004 08:13 AM
Fedora Core 2 - not accepting any requests jclstone Linux - Newbie 2 09-28-2004 07:11 AM
nocatauth not accepting requests on port 80 majortool Linux - Wireless Networking 0 07-13-2004 01:08 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration