Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old March 5th, 2008   #1
ben22
Gee! These Aren't Roasted!
 
Join Date: Aug 2007
Beans: 159
Could not reliably determine the server's fully qualified domain name, using 127.0.1,

In Short the problems:
Qualified domain name not f
  • ound - solved by chaning apache2.conf
  • cannot open localhost, - tried
editing the /sites-available/default > NOT SOLVED



Hello,

while installing apache 2 an error msg about a qualified domain name appeared:
Code:
 * Starting web server apache2                                                                                             apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]

According to other posts I added ServerName "localhost" to the apache2.conf and restarting apache2 made the error about qualified domain name vanish.



However, I still cannot open localhost to get the message "It works".

I edited the /etc/apache2/sites-available/default file and changed the Document Root and the default directory - NO SUCCESS:

Code:
[DocumentRoot /var/www/
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/apache2-default>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
		# This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
	</Directory>
Removing the # did not help by the way.


Here also the data from the /etc/hosts:

127.0.0.1 localhost
127.0.1.1 ben-desktop

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Bottomline: opening http://localhost does not show any page.

HELP VERY MUCH APPRECIATED!!


ben
ben22 is offline   Reply With Quote
Old March 5th, 2008   #2
halitech
Ubuntu addict and loving it
 
halitech's Avatar
 
Join Date: Feb 2006
Location: East Coast Canuck
Beans: 5,257
Send a message via Yahoo to halitech
Re: Could not reliably determine the server's fully qualified domain name, using 127.

will it load if you use 127.0.0.1?
__________________
Main system: Debian Lenny(64bit) + XFCE4 AM2 5200+ 2gig RAM, 2X160Gig HD

what's the difference between an answer and a solution? An answer is what they want to hear, a solution is what they don't want to hear
halitech is online now   Reply With Quote
Old March 5th, 2008   #3
ben22
Gee! These Aren't Roasted!
 
Join Date: Aug 2007
Beans: 159
Re: Could not reliably determine the server's fully qualified domain name, using 127.

Quote:
Originally Posted by halitech View Post
will it load if you use 127.0.0.1?
No, it doesnt
ben22 is offline   Reply With Quote
Old March 5th, 2008   #4
ben22
Gee! These Aren't Roasted!
 
Join Date: Aug 2007
Beans: 159
Re: Could not reliably determine the server's fully qualified domain name, using 127.

> > ben@ben-desktop:~$ sudo netstat -anp | grep '^tcp.*LISTEN'
> > [sudo] password for ben:
> > tcp 0 0 0.0.0.0:80 0.0.0.0:*
> > LISTEN 5114/apache2

So apache is listening on port 80 of all IP addresses. This is as it should be.

Then why can't you connect? It could be any number of reasons, but
very few of them have anything to do with apache configuration. That
is why I again recommend you head over to a ubuntu forum where they
understand how your system is setup. You could have a firewall in
place. You could be connecting from the wrong machine. There could be
some deeper network configuration error on the box. I don't know.

Joshua.


This answer I got from Apache support.

Maybe some Ubuntu user can be of help.
ben22 is offline   Reply With Quote
Old May 30th, 2008   #5
Belak
A Carafe of Ubuntu
 
Join Date: Dec 2007
Location: Michigan
Beans: 100
Ubuntu 7.10 Gutsy Gibbon
Send a message via AIM to Belak Send a message via MSN to Belak Send a message via Yahoo to Belak
Re: Could not reliably determine the server's fully qualified domain name, using 127.

Well, IDK if this will help, but with apache comes 2 relevant functions.

a2ensite
and a2dissite

My guess is that apache doesn't have a site enabled.

Is there anything in /etc/apache2/sites-enabled/ ?

If there isn't try running the following command
sudo a2ensite default

That will (In theory) enable the default site

Cheers,
Belak
__________________
Registered Linux User # 469449 | Registered Ubuntu User # 21486
My Tutorials: Convert SysLinux entries into Grub Entries | Ultimate USB Recovery Drive
Chuck Norris can restore a system from sudo rm -rf /.
You can't.
Belak is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 07:04 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry