I have an Ubuntu distribution with a localhost setup in /var/www/html/mysite
working properly. The problem I have is, when I edit files in this folder, I must do as root or www-data
which is not completely ok, as I have to run every mkdir
with sudo -u
or use chown
all the time, plus, my text editor (Sublime text) doesn't integrate properly with my Unity desktop.
I tried to setup localhost in my home dir but I found some problems and I don't like the idea so much.
As a better alternative I tried to have mysite
in my home directory, owned by me and with permissions drwxr-xr-x
, and create a symbolic link /var/www/html/mysite
owned by www-data
, but I get an error:
403 - You don't have permission to access / on this server.
Any ideas? How have you resolved this question?
PS: My user does belong to www-data
group