im having a few problems symlinking my /var/www/
to a new Webroot
directory inside my home folder. I think these stem from my lack of understanding of linux permissions.
As far as im aware, symlinks should take the form of the directory you want to linked and the directory you want to be linked to, so in my case, i ran:
sudo ln -s ~/Webroot/* /var/www/
this has sort of worked, if i run ls
on /var/www/
i can see all of the files in my Webroot
directory.
Whenever i try to run a file that is in my Webroot
folder, i get a 403 permission error, is this because the files in my Webroot directory are created by me, and the apache instance is being run as www-data?
if this is the case, would this mean i need to change the permissions on every file i create in order to run it?
I have previously run a local apache instance my pointing the directory root of my default vhost to the Webroot
folder, in this instance i did not need to alter any permissions. Any help would be appreciated.