LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-30-2003, 02:46 PM   #1
zmarty
LQ Newbie
 
Registered: Oct 2003
Location: Sweden
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Question Web server permissions


I'm running the standard apache server under Red Hat 9. The HTTP server works fine in the main directory (eg. localhost/). But once I try to get into a directory in the main directory (eg. localhost/docs/), it wont let me have access. I've tried to set the directory chmod to everything between standard and 777. What's wrong? Please help!
 
Old 10-30-2003, 02:51 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Where do you have DocumentRoot set to? Look into httpd.conf.
 
Old 10-30-2003, 03:04 PM   #3
zmarty
LQ Newbie
 
Registered: Oct 2003
Location: Sweden
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
It's set to var/www/html. Why?
 
Old 10-31-2003, 11:19 AM   #4
zmarty
LQ Newbie
 
Registered: Oct 2003
Location: Sweden
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
I would be really grateful if someone could come up with something... Thanks!
 
Old 10-31-2003, 04:05 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by zmarty
It's set to var/www/html. Why?
So when you access localhost/docs, you access /var/www/html/docs. Is it the right directory?
 
Old 10-31-2003, 11:26 PM   #6
zmarty
LQ Newbie
 
Registered: Oct 2003
Location: Sweden
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Mara
So when you access localhost/docs, you access /var/www/html/docs. Is it the right directory?
Well.. yeah. I noticed the index.html is the only page I can view in the root too. Other files I dont have permission to view.. Thanks!
 
  


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
Same permissions on two files, but only one can be accessed by web server? murr4y Linux - Software 5 06-14-2005 02:59 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
default file permissions for web server AZDAVE Linux - Security 3 11-13-2003 03:22 PM
Permissions and Apache Web Server Ethen Linux - Newbie 3 07-16-2003 10:39 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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