Dec
10

Delete files and folders via SSH

posted on December 10th 2014 in blogposts with 2 Comments

To delete a file using SSH, you’ll need to execute the appropriate command – rm. The command looks like this: rm myFile.txt myFile1.txt myFile2.txt …etc… However, listing all files/folders that need to be deleted can be quite time consuming. Fortunately rm accepts several arguments which can make your job easier. In the above example you […]

Read Article
Dec
10

Transfer Magento from one server to another

posted on December 10th 2014 in blogposts with 0 Comments

If you’re developing your store on a staging server and need to move to a different production environment or you’re simply changing hosting providers, here’s a quick step by step tutorial that will help: Step 1 – Create a database First, you need to create a new MySQL database for the new server location. Log […]

Read Article
Nov
12

(Re) Index Magento via command line (SSH)

posted on November 12th 2014 in blogposts with 0 Comments

Magento can just easily be indexed via backend by going to System – Index Management section but sometimes this process can fail or the backend might not be accessible. A simple way to bypass this is to log in using command line and the following: Navigate to the root of your Magento installation. Once there, […]

Read Article
Aug
07

What is grep and when/how to use it

posted on August 7th 2014 in blogposts with 0 Comments

Grep is a Unix tool used for searching content within files sitting on the server. The general syntax of the grep commands is: grep [-options] pattern [filename] You can use fgrep to find all the lines of a file that contain a particular word. For example, to list all the lines of a file named myfile in the current directory that […]

Read Article
Aug
05

Backup/Restore Magento SQL database using SSH

posted on August 5th 2014 in blogposts with 0 Comments

This tutorial explains how to backup and restore a database using secure shell (SSH) as opposed to Cpanel or PHPMyadmin. SSH (Secure Shell) can be used in Windows via 3rd party apps like Putty or in OSX via native Terminal App. To backup your database through SSH (create SQL dump): mysqldump –opt -u user -p dbname > […]

Read Article