Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I took a web project from my Window's disk and put it under /var/www.

localhost (my web server) doesn't recognize it because of permissions.

What do I need to run on the folder so that apache can read/write to it?

I tried recursive chmod, didn't work.

share|improve this question
    
You also changed the owner of the files right? – Ramhound Nov 16 '12 at 12:49

from command line go to /var/www and type:

ls -lhat

check the ownership of your files. The command above should show you the user/group for your index file. Is it the same as the files you copied over?

If you installed a web server from a repository, the user/group is likely www-data:www-data or nginx:nginx (depending on your web server). Ensure that the files you copied over have the proper ownership. You can change the ownership by:

chown <user>:<group> files

Example: chown -R www-data:www-data /var/www/folder

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .