site configuration

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.

  1. Copy the default.settings.php to settings.php.
    Do this from the command line (working from the root of the directory containing your Drupal installation) by typing

    cp sites/default/default.settings.php sites/default/settings.php.

    Please note: Do not simply rename the file. The Drupal installer needs both files.

  2. You should now have a default.settings.php AND a settings.php file in your sites/default directory.
  3. Make the settings file writeable, so that the installer can edit it, type
    chmod a+w sites/default/settings.php or
    chmod 666 sites/default/settings.php
Read more
Subscribe with RSS Syndicate content
nobody click here