Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Lat: 39:03:51N Lon: 77:14:37W
    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.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3

    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

  4. $spacer_open
  5. #4
    Just Joined!
    Join Date
    Feb 2005
    Velden - Netherlands
    The owner has to be apache

  6. #5
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    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..
    <Directory /www/mywebroot>
        Options Indexes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts