Results 1 to 5 of 5
Hey everyone.
I was woundering how would I set a directory so that I can view it on the web. Try to go to one of my web directories to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-18-2005 #1Just Joined!
- Join Date
- Dec 2004
- Posts
- 9
Apache Dir Permissions?
Hey everyone.
I was woundering how would I set a directory so that I can view it on the web. Try to go to one of my web directories to view the contents like in a directory tree type thing and I get permissions denied. How to do this please. Using Mandrake 10.1
- 02-19-2005 #2
use of the chown command and chmod command
you should make sure that the user apache runs as is the user that owns the apache directory, and chmod should keep permissions on that directory tight
man chown and man chmod should give you a better idea of how to utilize these commands.
- 02-19-2005 #3Just Joined!
- Join Date
- Dec 2004
- Posts
- 9
I tryed...
I did try to do chmod 777 to give permisions to everyone and I still could not view the files in the dir with my web browser
- 02-20-2005 #4Just Joined!
- Join Date
- Feb 2005
- Location
- Lomm - Netherlands
- Posts
- 80
The owner has to be apache
- 02-20-2005 #5
The owner does not have to be apache the apache user just needs read access 'chmod 644' the problem here is you are trying to view/index a directory and im guessing you have -Indexes set in you httpd.conf thats why you get forbidden change it to Indexes eg..
Code:<Directory /www/mywebroot> Options Indexes </Directory>


Reply With Quote
