Step 3: Create the settings.php file

Your Drupal download comes with a sample configuration file at sites/default /default.settings.php.

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.

  1. Copy the default.settings.php file and save the new file as settings.php in 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.

  2. To make the settings.php file writeable and to allow the installer to edit the file, use either of the following commands:

    chmod a+w sites/default/settings.php
    chmod 666 sites/default/settings.php

    Both commands have the same effect.

Subscribe with RSS Subscribe to RSS - preparation