Step 3: The settings.php file
Prior to running the installation script, you must create a settings.php file and set some permissions.
Settings.php
Your Drupal download comes with a sample configuration file at sites/default /default.settings.php. The default file must be copied and the new file must be given the correct name, settings.php.
Please 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.phptosettings.php.
Do this from the command line (working from the root of the directory containing your Drupal installation) by typingcp sites/default/default.settings.php sites/default/settings.php.Please note: Do not simply rename the file. The Drupal installer needs both files.
- You should now have a default.settings.php AND a settings.php file in your
sites/defaultdirectory. - Make the settings file writeable, so that the installer can edit it, type
chmod a+w sites/default/settings.phporchmod 666 sites/default/settings.php