HOW CAN WE HELP YOU TODAY?

1
Knowledgebase: VPS Hosting
Installing Magento on VPS or Dedicated server without a control panel
Posted by on 30 June 2014 12:46 PM

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

Step 1 : Create a Database & its User

  1. To do it, access your hosting server using SSH

  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

     

In the above screen, we’ve demonstrated an example for this, where:

  • magento_demo1 >> database name

  • magento_usr1 >> database user

  • qazwsx@123 >> password of the user

 

Step 2 : Download Magento 1 or Magento 2

You can do this in 2 ways:

  1. Upload the Magento contents to your server via FTP

  2. Directly download the files on the server via SSH

 

In this article, we’ll help you with 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/demomag/public_html.
    Type in this command one by one and hit Enter:

    # cd /home/demomag/public_html

     

     

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

# wget http://www.magentocommerce.com/downloads/assets/1.9.0.1/magento-1.9.0.1.tar.gz
# tar -xzf magento-1.9.0.1.tar.gz

Now, the Magento files are extracted inside the folder “/home/demomag/public_html/magento”.

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

If you’d like it on the main domain, you can just move the files from the directory "/home/demomag/public_html/magento" to "/home/demomag/public_html".

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

# cd /home/demomag/public_html/magento
# mv ./* /home/demomag/public_html/

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

 

Step 3 : Pre-installation check

Before proceeding with the Magento installation, check whether your hosting package meets the server requirements set by Magento. In case you see a warning for any missing PHP modules, contact your system admin to install it on the server.

 

Step 4 : Run the installation script

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

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

Accept the license agreement and proceed with the installation.

 

Step 5 : Localization

Select your Language & Time Zone and click on Continue


Step 6 : Database Configuration

Set the Database configuration to the following:

Database Type: MySQL

Host: localhost

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

User name: Enter the Database user you created in Step 1

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

Base URL: yourdomain.com

Admin Path: Additional path added after Base URL to access your Administrative Panel (e.g. admin, administrator, webmaster etc.)

 

Step 7 : Creation of an admin account

Enter the Personal & Login Information that you’d like to set for the Magento admin of your website.

 

Step 8 : Final setup

Just fill in a short survey provided by Magento and hit Submit


On this page, you will get an encryption key for your Magento application. This key is also stored in the directory app/etc/local.xml file which will look something like this:

----

<crypt>

<key><![CDATA[2721dc08d6ba72d66e61c715de7e9764]]></key>

</crypt>

Save this encryption key securely somewhere, it’ll help you if you’re moving your Magento content to a different Magento instance.

Once you’re done, just hit Submit and you’re ready to use your Magento on your virtual private servers.



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