Knowledgebase: How-To
Install Drupal 7.14 Without Fantastico
Posted by on 02 July 2012 10:45 AM

Using these instructions you should be able to do a default Drupal install in under three minutes. Not bad for a fully functional site straight out of the box!

For this example we're using Ubuntu Linux to install, although the commands etc. should work cross-platform. For Drupal 5, things are very similar.

Getting the Source

These directions will install the Drupal CMS into the root of your site. If you want to install Drupal into a folder on your site (like then forgo step 5. Instead you can rename the extracted Drupal folder to whatever you choose.

To begin installing the Drupal CMS:

  1. SSH into your account

  2. Navigate to your public_html folder

  3. wget

  4. tar -zxvf drupal-7.14.tar.gz

  5. mv drupal-7.14/* drupal-7.14/.htaccess ~/public_html/

  6. rm drupal-7.14.tar.gz

You should be able to navigate to your site, but in order to make things work, you need to create a database....

Creating the Database

We're going to use cPanel to install the database and SSH to issue the commands:

  1. Log in to cPanel

  2. Navigate to the MySQL Databases section

  3. In the Current Databases section enter the name you want to use
    Note: this can be anything, just be sure to remember what it is (write it down!) as it will be important in a later step. For this exercise we're using the database name 'Drupal' for the sake of simplicity.

  4. Click Create Database

  5. You will notice that your database is created using the format 'ASOusername_databasename'; in this case ours is 'ASOusername_drupal'

  6. To create the database user enter the username and password for this user and click Create User

  7. To add the user to the database select your database and user (make sure All is checked under Privileges) and click Add User to Database

  8. To load the database schema enter this command in your SSH session:

    mysql -u ASOusername_username -p ASOusername_databasename < database/database.7.1.mysql

    Note: in my example it would be 'mysql -u ASOusername_drupal -p ASOusername_drupal < database/database.7.1.mysql'.

Now if you navigate to your site you will notice nothing has changed because we haven't told Drupal where to find your newly created database yet...

Connecting Your Site to Your Database

  1. Use Nano Editor, or similar, to change the your settings.php file OR download the file with FTP and make the changes before re-uploading it to the server

  2. In the SSH session enter this command: nano sites/default/settings.php

  3. Scroll down to the line:

    ​$db_url = "mysql://username:[email protected]/databasename";

  4. Change it to:

    ​$db_url = "mysql://drupaldatabaseusername:[email protected]/drupaldatabasename";
    Note: in my example this would be '$db_url = 'mysql://ASOUsername_drupal:[email protected]/ASOusername_drupal''

  5. Change the $base_url line just a little farther down to your website's URL

  6. Save the file by pressing CTRL + X and confirm the save by hitting Y

  7. Congratulations you have just finished installing Drupal

Wrapping it Up

  1. Navigate to your site's URL

    Now, let's create a directory called 'files' in our public_html directory, which is where Drupal will store things like your site logo.

  2. Go to your SSH Session
    Note: it is VERY important that you be the one to create the first user. This user will have full admin privileges and will be able to grant others appropriate site access. It is usually best to create the first username as admin or administrator. 

  3. Enter this command:

    cd ~/public_html

  4. Enter this command:

    mkdir files

  5. Enter this command:

    ​chmod 777 files

You've just completed your Drupal install. Now go to the Drupal website and and read up on the growing number of modules and themes!

(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
Help Desk Software by Kayako fusion