Existing site drops me back into the install routine and when I succumb and try to go through the install, it tells me:

  • I need to create a sites/default/settings file when it already exists; even when I delete that and create a new one, I get the same error message
  • Similarly, it says I need to create a sites/default/files directory, even when it already exists; when I try to delete the old one and start over I get a bunch of denials and when I try to change the properties, I get a bunch of messages telling me I can't do that.

Do I have to scrap the whole site and start over? Hopefully I can keep the Drupal DB which has some newly-created content pages.

And while we are at it, when I set the properties for a file or folder, is Drupal considered the Owner, Group, or Other?

  • Not sure what you did to cause this, but if your database is still in tact all you should need is the settings.php file. You're likely seeing a permissions problem. Your webserver's group must be able to read settings.php – Patrick Ryan Dec 12 '15 at 17:46

This seems like a permissions problem. If you are in Linux, use the "chmod" command to set the correct permissions for settings.phpYou may need to have superuser privileges to do this so see your site admin.

Often, the web-server runs as user "www-data" with group "www-data" so you may need to use the "chown" command (once again with superuser privileges) to change its ownership first.


# sudo chown www-data:www-data settings.php

# sudo chmod 444 settings.php

You will have to adjust the permissions again before editing this file in the future.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.