3.7. Running the Interactive Installer
Running the Interactive Installer is a straightforward process that guides you through the steps necessary to install Drupal on your server. Below is a detailed step-by-step guide to help you through the process using both the User Interface (UI) and Drush.
Using the User Interface (UI)
- Download the Drupal Software:
- Download the latest version of Drupal from the official Drupal website.
- Extract the downloaded archive to a directory on your server where you want to install Drupal.
- Create a Database:
- Log in to your database management system (e.g., phpMyAdmin, MySQL Workbench).
- Create a new database for Drupal.
- Configure File Permissions:
- Ensure that the
sites/defaultdirectory and thesites/default/settings.phpfile have the correct permissions. Typically, these should be set to 755 (read and execute for the owner, read for the group and others) and 644 (read and write for the owner, read for the group and others).
- Ensure that the
- Run the Installer:
- Navigate to the root directory of your Drupal installation in your web browser.
- You should see a page that prompts you to run the installer.
- Follow the on-screen instructions to complete the installation. This includes:
- Database Configuration: Enter your database name, username, and password.
- Site Information: Provide details about your site, such as the site name and email address.
- Account Information: Create an account for the Drupal administrative user.
- Verify Installation:
- After completing the installation, you should be redirected to the front page of your new Drupal site.
- You should see a message indicating that Drupal has been successfully installed.
- Resolve File Permissions Warning:
- If you encounter a warning about file permissions, ensure that the
sites/defaultdirectory and thesites/default/settings.phpfile are set to 755 and 644, respectively.
- If you encounter a warning about file permissions, ensure that the
Using Drush
If you prefer to use Drush for the installation, follow these steps:
- Install Drush:
- Ensure Drush is installed on your server. You can install it globally using Composer:
composer global require drush/drush
- Ensure Drush is installed on your server. You can install it globally using Composer:
- Navigate to Drupal Directory:
- Open a terminal and navigate to the directory where you downloaded the Drupal software.
- Run the Installation Command:
- Use the following Drush command to install Drupal:
drush site:install standard --db-url='mysql://DB_USER:DB_PASS@localhost/DB_NAME' --site-name=example - Replace
DB_USER,DB_PASS, andDB_NAMEwith your database credentials and the desired site name.
- Use the following Drush command to install Drupal:
- Verify Installation:
- After running the command, check the output for any errors.
- If there are no errors, your Drupal installation should be complete.
- Access the Front Page:
- Open your web browser and navigate to the front page of your new Drupal site.
- Verify that the site is running correctly.
Expand Your Understanding
- Development Sites: Learn about setting up development environments for Drupal.
- Additional Tools: Explore other tools and resources that can enhance your Drupal development workflow.
Videos
- Running the Installer: Watch a video tutorial on how to run the Interactive Installer.
Additional Resources
- Drupal.org Community Documentation:
Feel free to reach out if you have any questions or need further assistance!