LowEndBox - Cheap VPS, Hosting and Dedicated Server Deals

Start Selling Online: Install Magento using SSH

lowendtutorial

Black Friday and the shopping season are quickly descending upon us. Why not put your Low End Box to work for you?

Installing the Magento Shopping Cart app using SSH is a painless install. Needless to say, installing Magento with SSH is one of the fastest ways to begin selling items online.

About the Install

Typically, Magento requires 45 MBs of space on your VPS. Using SSH, you can remotely connect to the server, fetch the latest install files and perform the install directly from the command line interface.

Here how you can get started with Magento:

First make sure that the right version of Magento is present. At the time of this writing, the most current version is 1.9.1.0.

Here’s the process for installing the Magento Shopping Cart:

1) Login to your server with administrative credentials using an SSH app such as PuTTY.

2) Install Magento Via PEAR downloader:

Using these commands to install in the mail directory:

wget http://www.magentocommerce.com/downloads/assets/1.9.0.0/magento-downloader-1.9.0.0.tar.gz

tar -zxvf magento-downloader-1.9.0.0.tar.gz

rm -rf magento-downloader-1.9.0.0.tar.gz

3) Run the Installer Go to: http://www.yourdomain.com/downloader.php in your web browser. If your low end box does not have a domain name associated with it, use the IP address instead of the domain name.

Using the Installer

The installer will walk you through the intricacies of setting up your shopping cart. The installer will ask that you create a database in MySQL for backend operations.

You may want to install PHPMyAdmin in order to create databases and users for your database rapidly. Once created, input those strings into the installer wizard.

Additional Tips

Magento can be installed in a subdirectory or subdomain. Use these commands below to set this up:

mkdir SUBDIRECTORY

cd SUBDIRECTORY

wget http://www.magentocommerce.com/downloads/assets/1.9.0.0/magento-downloader-1.9.0.0.tar.gz

tar -zxvf magento-downloader-1.9.0.0.tar.gz

rm -rf magento-downloader-1.9.0.0.tar.gz

Load up http://www.yourdomain.com/SUBDIRECTORY/downloader.php in a web browser.

Make Note of Your Usernames and Passwords

It can be difficult to remember all of your usernames and passwords. It is recommended that you take note of the username and password that you configure for the Magento Shopping Cart as well as the database itself.

Once you have performed the operations above, you are all set. When you’re executing SSH commands, you might find it beneficial to first type out the commands in an app like Notepad in order to review the commands for errors.

If you receive any errors when clicking on a product from the main page of your Magento install, you will have to login the backend of Magento and toggle the setting found on the System > Cache Management page.

5 Comments

  1. agentmishra:

    your tutorial dosent say anything about the memory requirement for magento…

    try and give full information

    also try to inform about maintenance….

    November 24, 2015 @ 6:46 pm | Reply
  2. Manto:

    Magento is not that easy to install/mantain, 1.9.0.0 already have lots of security patches. Needless to mention newest version of magento is 2.0 now.

    November 26, 2015 @ 6:35 am | Reply
  3. That is how you install magento if you want to bash your head against the wall for the rest of your development life.
    Here is how the pros do it. The exception being that the php executables would probably be in /usr/local/bin instead of the userland home directory.

    lyle@lubuntu:~$ curl -s https://getcomposer.org/installer | php
    lyle@lubuntu:~$ mkdir .composer
    lyle@lubuntu:~$ chmod +x composer.phar
    lyle@lubuntu:~$ mv composer.phar .composer/composer
    
    lyle@lubuntu:~$ wget http://files.magerun.net/n98-magerun-latest.phar -O n98-magerun.phar
    lyle@lubuntu:~$ chmod +x n98-magerun.phar
    lyle@lubuntu:~$ mkdir .magerun
    lyle@lubuntu:~$ mv n98-magerun.phar .magerun/magerun
    
    lyle@lubuntu:~$ echo 'export PATH="$PATH:~/.composer:~/.magerun"' >> ~/.bashrc
    
    lyle@lubuntu:~$ cd web/magento.oasis.lan/public_html/
    lyle@lubuntu:~$ magerun | grep install
    
    December 5, 2015 @ 5:31 am | Reply

Leave a Reply

Some notes on commenting on LowEndBox:

  • Do not use LowEndBox for support issues. Go to your hosting provider and issue a ticket there. Coming here saying "my VPS is down, what do I do?!" will only have your comments removed.
  • Akismet is used for spam detection. Some comments may be held temporarily for manual approval.
  • Use <pre>...</pre> to quote the output from your terminal/console, or consider using a pastebin service.

Your email address will not be published. Required fields are marked *