When I try to load my existing project using Eclipse I get the error of “Invalid project contents directory”.
I have created those files in Windows environment and now I’m trying to open those files as PHP projects in Linux.
What can I do to fix this problem?
After using chown command on my www folder recursively, the problem was gone. I think the problem was that eclipse can’t create new files inside those folders. (Duh!)
sudo chown -R /var/www user:group
There is another workaround: you can run the eclipse via terminal using sudo command.
sudo chown -R $USER:$USER /var/www to allow access to the folder by its ordinary user