This is not a problem of your permissions but of the owner of the files then, in linux the three parts for the permission system are for Owner - Group - World in a standard server setup the apache or whatever server serves your pages should be in the group, this can be www-data or www-server or similar. you can check which group by typing in $|ps aux | grep apache | ||