Your Drupal download comes with a sample configuration file at
Before you run the installation script, you must copy the configuration file as a new file called
settings.php file and then set some permissions.
Note: With Drupal 7.x, on some types of shared/local hosting, if PHP and Apache are run by the same user, Drupal will attempt to execute the first three steps for you. If you get errors referring to the "Settings file" during installation, you can perform these steps manually.
- Copy the
default.settings.phpfile and save the new file as
settings.phpin the same directory. To do this, run the following command from the directory that contains your Drupal installation files:
cp sites/default/default.settings.php sites/default/settings.php
Note: Do not simply rename the file. The Drupal installer needs both files.
- To make the
settings.phpfile writeable and to allow the installer to edit the file, use:
chmod a+w sites/default/settings.php
Several FTP tools like Filezilla, Transmit, and Fetch allow you to change file permissions, using a 'file attribute' or 'get info' command. In this case the file permission should be set to 666. If your FTP client has checkboxes for setting permissions, check both the Read and Write boxes for "Owner", "Group", and "Others" (but leave the Execute boxes unchecked).
Note: Be sure to change the file's permissions back after you have run the installation script. Those permissions should be:
chmod 644 settings.php
chmod 755 ../default
- To let the files directory be created automatically, give the web server write privileges to the sites/default directory.
chmod a+w sites/default