I have created a web server with my Pi, and everything was working fine. I got the "It works!" page so I thought "Okay, everything's working". I then decided to upload a new index.html file. After uploading, everything is forbidden. Here's what Apache tells me when I navigate to it now:


You don't have permission to access /admin on this server.

Apache/2.2.22 (Debian) Server at blah blah
Did I do something to mess it up?

By the way, this is what I used as a tutorial: http://tinkernut.com/wiki/page/Episode_320

  • This also happened to me, using this tutorial: penguintutor.com/linux/raspberrypi-webserver And then setting up FTP on my own (which I have had no problems with) EDIT: Fixed this with @lenik 's comment in the answer. Works great now. Commented May 9, 2013 at 22:26
  • 1
    @Ben7005 I also learned that find /opt/lampp/htdocs -type d -exec chmod 755 {} \; will chmod all the directories and subdirectories while find /opt/lampp/htdocs -type f -exec chmod 644 {} \; will chmod all the files within the specified directory. Obviously you replace /opt/lampp/htdocs with whatever folder path you need to chmod.
    – user6531
    Commented May 9, 2013 at 23:23

1 Answer 1


you should not type in your browser, just the address part: (your real address most probably would be different in the last two numbers, like 192.168.XXX.XXX)

  • Yes, I understand that. But even the index.html file is "foribidden"
    – user6531
    Commented May 8, 2013 at 16:45
  • 1
    please, use ls -al in your web server root directory (where you have uploaded index.html) and see who is the owner of the files, and what are the permissions. basically, the owner is supposed to be www-data or something and permissions should be like rw-r--r--, you may fix the owner with chown owner:owner file command and the permissions with chmod 0644 file command.
    – lenik
    Commented May 8, 2013 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.