Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying setup Apache to point the directory root to /home/my-username/Dropbox/Hemsidor but when I go to localhost I got 403 Forbidden. I don't have any .htaccess file in the home directory (Hemsidor) so I don't know what the problem is. I have tested to add Options +FollowSymLinks -SymLinksIfOwnerMatch in my httpd.conf file and then restarted Apache but with no luck.

What's wrong?

Thanks in advance.

share|improve this question

Set the user and group of the directory as www-data via chown and chgrp command

share|improve this answer
How do I do this? I'm completely new to configuring LAMP in Ubuntu. – Erik Edgren Dec 15 '12 at 23:07
sudo chown www-data /home/my-username/Dropbox/Hemsidor && sudo chgrp www-data /home/my-username/Dropbox/Hemsidor – Danial Behzadi Dec 17 '12 at 13:27
Thanks but that didn't work. I'm still getting 403 Forbidden even when I have restarted Apache after entering those commands. By the way! Nothing happened when I entered those commands. Is that right? – Erik Edgren Dec 18 '12 at 0:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.