I am running ubuntu 12.04 LTS . To be able to view my web project in the browser I did the following:
chown -R www-data:www-data /var/www/project
Now I wanted to open the project in netbeans but it has not the permissions to read or write. So I created another group called netbeans and added the current user and www-data user to that group.
chgrp -R netbeans /var/www/project
but netbeans still cannot write or even read. And it seams that apache only can read the project folder when its owner is www-data.
Any ideas how to solve this?