Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Servers > Default HTML Directory, Ubuntu 6.06
 Servers   Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-27-2006   #1 (permalink)
Linux Enthusiast
 
Join Date: Dec 2004
Posts: 635
Default HTML Directory, Ubuntu 6.06

Okay, still frustrated here. I am assuming that the default HTML directory for Apache2 using Ubuntu 6.06 is /var/www/apache2-default, is this correct? I post a Web site in this directory and still receive the directory tree when browsing this server via Web Browswer. Then, once I click apache2-default I am greeted with my Web site. As previously stated, this is a bit strange since other Linux distros have a default publication directory and once copied displays the Web site. I have also edited /etc/apache2/apache.conf to include index.htm for directory root. Any ideas as to how I'm hosing this up?

I'm getting a little frustrated here.
gtmtnbiker98 is offline  

Reply With Quote
Old 06-27-2006   #2 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 994
if you browse to your website http://localhost and it shows apache-default as a clickable link, then try putting your website stuff in /var/www/ and then reload your website. it looks like var/www is your root and apache-default is a directory being served.
jledhead is online now   Reply With Quote
Old 06-27-2006   #3 (permalink)
Linux Enthusiast
 
Join Date: Dec 2004
Posts: 635
Thanks, jledhead, that did the trick. Now, I have one remaining issue. When I issue the command /etc/init.d/apache 2 start/stop/restart I am receiving the following error "Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName." Where do I rectify this error?
gtmtnbiker98 is offline   Reply With Quote
Old 06-27-2006   #4 (permalink)
Linux Guru
 
antidrugue's Avatar
 
Join Date: Oct 2005
Location: Montreal, Canada
Posts: 3,213
Quote:
Originally Posted by gtmtnbiker98
"Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName."
Is your machine present in /etc/hosts?
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline   Reply With Quote
Old 06-27-2006   #5 (permalink)
Linux Enthusiast
 
Join Date: Dec 2004
Posts: 635
I only see the following entries in the hosts file:

::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

Just for info, my hostname for this box is ubuntu. I checked the /etc/hostname file and it reflects the hostname of ubuntu correctly. Ideas?
gtmtnbiker98 is offline   Reply With Quote
Old 06-27-2006   #6 (permalink)
Linux Enthusiast
 
Join Date: Dec 2004
Posts: 635
Forgot to mention, I have experienced this same problem with my Debian installation as well. It must be something that I'm missing on these Debian machines. My SuSE and CentOS machines configure first time. Perhaps if I can only narrow down my setup glitch then I will be a happy camper.
gtmtnbiker98 is offline   Reply With Quote
Old 06-27-2006   #7 (permalink)
Linux Guru
 
antidrugue's Avatar
 
Join Date: Oct 2005
Location: Montreal, Canada
Posts: 3,213
Quote:
Originally Posted by gtmtnbiker98
Just for info, my hostname for this box is ubuntu. I checked the /etc/hostname file and it reflects the hostname of ubuntu correctly. Ideas?
Then you would need a line like this one in your /etc/hosts file :
Code:
127.0.0.1       localhost.localdomain   localhost       ubuntu
__________________
"To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

-Bruce Lee
antidrugue is offline   Reply With Quote
Old 07-23-2006   #8 (permalink)
Just Joined!
 
Join Date: Jul 2006
Posts: 1
Just saw the post, so I'm sure that the issue's been fixed. However, I thought I'd post the solution so others could find it more easily.

You need to add your ServerName to the apache2.conf file. Here's what I did:
Code:
sudo gedit /etc/apache2/apache2.conf
Then add the following 2 lines at the bottom (replace myserver with your hostname).
Code:
# Added ServerName to avoid the could not determine FQDN error
ServerName myserver
Then you can restart the server:
Code:
sudo /etc/init.d/apache2 restart
...now notice no errors! Enjoy!
readingboy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 03:32 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2