LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices

Reply
 
Search this Thread
Old 02-08-2009, 02:55 AM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Rep: Reputation: 32
Question Just emerged Apache2 - can not see web page (gentoo)


I just emerged apache2 and did a: /etc/init.d/apache2 start

I can not see the default web page "It works!"

I do get a few messages at startup:

icc_project_ia32 init.d # /etc/init.d/apache2 start
* Caching service dependencies ...
* Starting apache2 ...
apache2: apr_sockadr_info_get() failed for icc_project_ia32
apache2: Coud not reliably determine the server's fully qualified domain name, using 127.0.0.1 for Servername

Any ideas on what I need to do?
 
Old 02-08-2009, 06:40 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 698

Rep: Reputation: 75
The last message is ok - I'm getting it but my apache works fine.
About the second last message I'm not sure. What do you have in your "/etc/hosts"? In my case I have:
Code:
# IPv4 and IPv6 localhost aliases
127.0.0.1       localhost
::1             localhost
127.0.0.1       notebook_hp
 
Old 02-08-2009, 12:44 PM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Apache tries to determine what should it tell about your server name on, say, error pages. It failed (it knows that localhost is not a meaningful server name), and as it is listening only on 127.0.0.1 it uses that IP instead of nice.domain.name on 404 page etc.
 
Old 02-08-2009, 05:47 PM   #4
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 616

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by raskin View Post
Apache tries to determine what should it tell about your server name on, say, error pages. It failed (it knows that localhost is not a meaningful server name), and as it is listening only on 127.0.0.1 it uses that IP instead of nice.domain.name on 404 page etc.
The server has a hostname... what do I need to add to get it recognized?
 
Old 02-08-2009, 11:40 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,893

Rep: Reputation: 68
Make sure Apache is started when IP is already assigned to the interface and set your hostname to the name of the server. Or you can specify ServerName in httpd.conf . http://httpd.apache.org/docs has more information on that..
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
web page database access per page or per session? b0uncer Programming 6 01-13-2007 12:09 PM
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
Gentoo Install Failed / mod_PHP can't be emerged anubis26 Linux - Distributions 2 07-27-2006 09:26 PM
Help with Web Page Hosting and Apache2 Hambone_20003 Linux - Software 2 08-23-2005 08:31 PM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM


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