as we know that once we install a drupal, it is necessary to generate /files and /files/tmp by itself, in order to enable the autogneration I set the root permission to 777. now these folders are generated automatically and I want to reset the root to be a saver permission, what should I set?

Comments

mickh’s picture

As I understand it the /files directory needs permissions of 777 so that the web server can write to it.

A probable alternative is to change the user/group ownership of /files to whatever user/group the web server runs as, then use permissions like 755 or 775, but that will be difficult or cause difficulties on shared hosting.