Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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.