Install Magento via SSH (the easy way)

I just spent one too many times waiting while Magento uploaded to my server via FTP.  And as it happens much of the time it failed.  Rather than dealing with repeated FTP disconnects I headed off to see if there was a better way.  The obvious choice had to be something over SSH.  But to be honest, my SSH-fu isn’t as strong as your average sysadmin.  Thankfully, there are some kind souls out there who put together a wonderful script and instructions on how to do just this.

This like any other SSH activity this isn’t for the feint of heart and should come with a standard disclaimer: you can really screw some stuff up using SSH so be cautious, use a strong password, and backup your stuff.

Ready?  Good, head on over here for the detailed instructions.  Let me tell you, this was substantially faster than the old-fashioned way over FTP and then manually running the installer.  Figure this will take you a few minutes to parse the instructions, get your SSH client fired up, and start the script.  This is compared to waiting eons on FTP to upload the 12, 194 files (I shit you not) in the standard Magento install.  And in my experience using FTP doesn’t always work anyhow.

Keep in mind since you will need to navigate first to your Magento installation folder before getting started.

Note! make sure you have your PHP memory limit set high enough.  For me at the MediaTemple DV default (I think it was 32MB) it failed.  However, upping this to 128MB (I have a total of 768MB of RAM) made things work like a charm.

Thanks to the guys at Crucial web hosting for the article, you just saved me a ton of time and frustration.

1 comment

Leave a comment