Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache noob question on permissions

Status
Not open for further replies.

Hondy

Technical User
Mar 3, 2003
864
GB
Hi

I have a web server running a page at I copied the files from an old server and need to access a subdir "new" so - but I get permission denied.

How do I fix this, remembering I am a noob!

Cheers

Hondy
 
Assiming you have the permissions set properly, you need to create a directory container for it in httpd.conf. You set the permissions for that directory using the "Order allow, deny" directive. The permissins in you DocumentRoot container can give you an example. If this directory is within a directory that is aready defined in a container then it will inherit the permissions of the directory that it is in. I hope this makes sense. I haven't had my first cup of coffee yet.

 
RythmeAce - I think you are on the right lines but its still not working

Also, do I need to restart apache each time I change the httpd.conf file?
 
I'm not sure how I got there but I did

ls -l bb
(bb is the name of the dir) and it showed me some kind of link to another area on /home/bb/bb/ than /usr/local/apache2

I did a
chmod -v +x /home/bb/bb/www

that seems to have fixed it, can anyone explain why it works outside of the apache dir?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top