HOW CAN WE HELP YOU TODAY?

1
Knowledgebase: VPS Hosting
Installing Drupal on VPS or Dedicated server without a control panel
Posted by on 30 June 2014 01:06 PM

If you’ve got VPS or a Dedicated server without a control panel and would like to install Drupal on it, you can do it easily. We’ll break it down for you.

 

Step 1 : Create a Database & its User

  1. Firslty, access your hosting server using SSH (Click here know how)
  2. Type in these commands one by one and hit Enter:

    mysql
    create database database_name;
    grant all privileges on database_name.* to database_user@localhost identified by 'database_user_password';
    flush privileges;
    quit

 

 

Steps 2 : Download Drupal

You can do this in 2 ways:

  1. Upload the Drupal contents to your server via FTP

  2. Directly download the files on the server via SSH

 

In this article, we’ll show you the easiest and fastest way i.e. using SSH. Here’s how you do it:

  1. Access your hosting server using SSH (Click here know how)

  2. Move to the website root directory  of your domain.
    For example, if your website root directory is /home/demobigo/public_html.
    Type in this command one by one and hit Enter:
    # cd /home/demobigo/public_html

  3. Now to download Drupal to your server, type in the following commands one by one & hit Enter     

# wget http://ftp.drupal.org/files/projects/drupal-7.28.tar.gz
# tar -xzf drupal-7.28.tar.gz

Now, the Drupal files are extracted inside the folder “/home/demobigo/public_html/drupal-7.28”.

You can install Drupal on the main domain (yourdomain.com) or even in a sub-directory (yourdomain.com/drupal)

If you’d like it on the main domain, you can just move the files from the directory "/home/demobigo/public_html/drupal-7.28" to "/home/demobigo/public_html/".

You can do this easily by running the following command lines one-by-one

# cd /home/demobigo/public_html/drupal-7.28
# mv ./* /home/demobigo/public_html

If you’d like it on  sub-directory say blog, just create a folder named blog and move the files to it similarly.

 

Step 3 : Run the installation script

  • If you have Drupal installation in the main domain, you should visit: http://domain.com/install.php

  • If you have Drupal installation in a folder say blog, you should visit: http://domain.com/drupal/install.php

 

Step 4 : Select an installation profile

We suggest going ahead with the Standard Profile

Click on Save and continue




Step 5 : Set the language for your Drupal site & click on Save and continue

 

Step 6 : Database configuration

Database Type : MySQL

Database Name : Enter the Database name you created in Step 1

Database username : Enter the Database user you created in Step 1

Database password  : Enter the Password that you’ve set for the database user (Refer Step 1)

Database host : localhost

 

Step 7 : Site configuration

Site name: Enter a title for your website

Site e-mail address: Enter an webmaster email address

Username: Set a unique username, rather than setting it as "admin" or "administrator" since these ones are prone to hacker attacks

E-mail address: Provide the Drupal administrators email address

Password: Set a strong password

Set the default country and the time zone & complete the installation

That’s it. You’re all good to use Drupal on your server.

To access Drupal’s admin panel, just visit - "http://yourdomain.com/admin" (if you’ve installed Drupal in the main directory)

 

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