HummingbirdUK main logo

Coding solutions to business problems

About us

We use code to create solutions to business challenges, bottle-necks and headaches.

If you think your business has a problem that can be solved through code, we are happy to chat things through without any obligation.

Get in touch

Install Magento over SSH

Home / Blog / Install Magento over SSH

Written by Giles Bennett

Following on from yesterday's post on how best to install Wordpress over SSH, this post deals with how to install Magento 1 over SSH.

As before, log in to your site with your chosen SSH client and navigate to the directory you want to install Magento in.

Download the latest version of Magento (at the time of writing :


Then unpack the downloaded package :

tar -zxvf magento-

which will unzip it into a directory called 'Magento'. Move the contents of that directory to your current directory with the command :

mv magento/* magento/.htaccess .

In case you were wondering, the first part of that command, on its own, will leave the .htaccess file behind, so it's included with the second part of the command.

Adjust the permissions on the var and media directories with the command :

chmod -R o+w media var

and ditto for the app/etc directory :

chmod o+w app/etc

Finally clear up behind you to remove the (now empty) Magento directory and the original installation file :

rm -rf magento/ magento-

Then continue the installation through Magento's web-based setup at luck!

Author : Giles Bennett

About the author

Giles Bennett built his first website in 1996, and is old enough to miss Netscape Navigator. Initially a lawyer, he jumped ship to IT in 2008, and after 5 years as a freelancer, he founded HummingbirdUK in 2013. He can be reached by email at