Home » Php » php – Invalid project contents directory error

php – Invalid project contents directory error

Posted by: admin July 12, 2020 Leave a comment

Questions:

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?

enter image description here

How to&Answers:

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!)

So:

sudo chown -R /var/www user:group

Answer:

There is another workaround: you can run the eclipse via terminal using sudo command.

Answer:

Use
sudo chown -R $USER:$USER /var/www to allow access to the folder by its ordinary user