LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-26-2007, 06:57 PM   #1
kitek
Member
 
Registered: Apr 2005
Posts: 252

Rep: Reputation: 15
Apache DocumentRoot not display my files


I have been working through some setup issues on a server with apache 2.0. Only think I have changed in the httpd.conf file is User_dir and added index.php to it for the searching. when doing localhost/~user/ everything works fine.
DocumentRoot in the .Conf I left default. etc/www/html. So when you run just localhost you get the default page. However I place a simple index.html that contained only hello its working and It still gets the default page. If I call the file such as localhost/index.html I get page can not be found. permission is set to 755? Any ideas of why its not acknowledging that there are files in the DocumentRoot.
 
Old 11-27-2007, 06:49 AM   #2
kitek
Member
 
Registered: Apr 2005
Posts: 252

Original Poster
Rep: Reputation: 15
No one has any idea?
 
Old 11-27-2007, 12:51 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Moved: This thread is more suitable in Linux Server and has been moved accordingly to help your thread/question get the exposure it deserves.

What log message to you get in your error_log file?
 
Old 11-27-2007, 01:49 PM   #4
dguitar
Member
 
Registered: Jun 2005
Location: Portland, ME
Distribution: Slackware 13, CentOS 5.3, FBSD 7.2, OBSD 4.6, Fedora 11
Posts: 122

Rep: Reputation: 17
Quote:
Originally Posted by kitek View Post
DocumentRoot in the .Conf I left default etc/www/html
Normally Default for apache is /var/www/html.

It can also be set in 2 places and is by default in your conf file.

You should see this line:
DocumentRoot "/var/www/html"

Then you should see this line:
<Directory "/var/www/html">

Make sure both of those are set to /etc/www/html or whatever you would like your DocRoot to be.
 
  


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
debian apache documentroot see Linux - Newbie 2 02-28-2006 02:18 AM
Apache DocumentRoot problem elliottsb Linux - Software 6 02-24-2005 09:40 PM
Apache won't display files in DocumentRoot PiGuy Linux - Newbie 6 01-21-2005 01:33 PM
how to change apache documentroot tr3s Red Hat 6 08-31-2003 10:34 AM
DocumentRoot apache illtbagu Linux - Software 6 02-28-2003 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:46 PM.

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