How to Install Drupal on your server

Tue 31 July 2007

You can obtain the latest Drupal release archive from here. The files are in .tar.gz format and can be extracted using most compression tools. On a typical Unix command line, use:

    # wget http://drupal.org/files/projects/drupal-x.x.tar.gz

    # tar -zxvf drupal-x.x.tar.gz

This will create a new directory drupal-x.x/ containing all Drupal files and directories. Move the contents of that directory into a directory within your web server's document root or your public HTML directory:

    # mv drupal-x.x/* drupal-x.x/.htaccess /srv/www/htdocs/drupal

Next step is to create a database using PHPMyAdmin or mysql command line. If you chose to use command line, additional information about privileges, and instructions to create a database using the command line are available in INSTALL.mysql.txt (for MySQL) or INSTALL.pgsql.txt (for PostgreSQL).

To run the install script point your browser to the your website (i.e. http://www.domain.com/drupal). You will be presented with the "Database Configuration" page, where you have to fill the information from the previous step (database name, database user, password)

If you receive in apache log file, next message:

    [Sun Jul 29 11:49:32 2007] [alert] [client 127.0.0.2] /srv/www/htdocs/drupal/.htaccess: order not allowed here

then you have to include next lines in your apache.conf:

    <Directory /srv/www/htdocs/drupal/>
    Options +Includes +FollowSymlinks -Indexes
    AllowOverride All
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
    </Directory>

now, point your browser to: http:/domain.com/drupal/ and fill the information regarding database. Create you initial accout, which is admin user, and configure your website.