From Fedora Project Wiki

Revision as of 23:35, 25 April 2010 by Pfrields (talk | contribs)

This page explains how to install Drupal on Fedora systems. The /usr/share/doc/drupal-*/drupal-README.fedora page on your system also has up-to-date instructions for your versions of Fedora and Drupal.

Web and SQL server setup

  1. Switch to the root account. Enter the root password at the prompt.
    su -
  2. Install necessary packages:
    su -c 'yum shell'
    > groupinstall 'Web Server' 'MySQL Database'
    > install drupal
  3. If you have not already done so, start the MySQL database server:
    su -c '/sbin/service mysqld start'
  4. If you have not already done so, set up the MySQL database server's administrator account. First, provide a root password.
    Do not use root account password
    Do not provide the system administrator's password for your Linux system here. Use a different strong password, since this is a separate authentication for a MySQL user called "root."
    mysqladmin -u root password $PASSWORD
  5. Create a database for Drupal:
    mysqladmin -u root -p create drupal
    Database creation
    You will be prompted to enter the MySQL "root" password from the previous step.
  6. Grant rights for a Drupal administrator on this database:
    [root@publictest1 ~]# mysql -u root -p
    Enter password: 
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 5
    Server version: 5.1.41 Source distribution
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    mysql> GRANT ALL PRIVILEGES ON drupal.* TO drupaladmin@localhost IDENTIFIED BY 'DRUPAL_PASSWORD';
    Query OK, 0 rows affected (0.00 sec)
    Query OK, 0 rows affected (0.00 sec)
    mysql> QUIT;
    The drupaladmin account and the DRUPAL_PASSWORD you used above are the ones you will use in Drupal's installation process shortly.

Drupal setup

  1. Edit the /etc/httpd/conf.d/drupal.conf file. If you are installing on the same system where you run your Web browser, uncomment the line below:
    Allow from

    If you are installing on a different system on your network, change the previous lines so they read as follows:

    #Deny from All
    Allow from All
    Save the file.
  2. Edit the /usr/share/drupal/.htaccess file. Uncomment the line below:
    RewriteBase /drupal
    Save the file.
  3. If necessary, change your firewall settings to permit TCP port 80 (HTTP) traffic.
  4. Copy and change the permissions on the default settings file:
    cp /etc/drupal/default/default.settings.php /etc/drupal/default/settings.php
    chmod 666 /etc/drupal/default/settings.php
  5. Start the Apache web server:
    service httpd start