Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drupal Settings file does not exist

I'm trying to set up a fresh install of drupal on on linux box and I'm getting the error:

Settings file The settings file does not exist. The Drupal installer requires that you create a settings file as part of the installation process. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php. More details about installing Drupal are available in INSTALL.txt.

I have set the permissions for the settings.php file but it is still doing it. sites,default and files all have 777 permissions but it still won't work. I have both the default.settings.php and settings.php in the default folder.

Thanks

like image 889
Luke CheerfulPlum Pace Avatar asked Oct 17 '25 20:10

Luke CheerfulPlum Pace


1 Answers

You have to keep in mind some things:

  • Your web server has to have the permission to run your code. If you are using Ubuntu, it would be better if you give www-data.www-data (user and group) permission to sites/default folder
  • To give 777 to files is dangerous because someone else can read this sensible file
  • Remember that all folders, including your Drupal root folder has to be readable, which means it has to have some thing like 755 permission.

Most time, this problem is related to the user running the web server and files.

like image 70
rfsbsb Avatar answered Oct 20 '25 08:10

rfsbsb