Guide : How to setup Magento ecommerce on cpanel / non-cpanel server with SSH Access

Posted by admin on October 31, 2008 under Guide |

First of all, make sure your web hosting provider meet the requirement before you install magento.

Reasons why you should use SSH access.

1. You can skip the ‘middle man’(FTP / file manager) and download all the files directly to your account.

2. FASTER & more convenient

Before we start…

This guide works for root level or in subdirectory

Make sure you are inside “public_html” or in your “subdirectory”, depend where you want install magento to.

Let’s get the ball rolling…!

Download the installation files & sample data .

( You can always check for newest release from http://www.magentocommerce.com/download/noregister )

//Download installation files
# wget http://www.magentocommerce.com/downloads/assets/1.1.8/magento-1.1.8.tar.gz

//Download the sample data
# wget http://www.magentocommerce.com/downloads/assets/1.1.2/magento-sample-data-1.1.2.tar.gz

//decompress the installation files
# tar zxfv magento-1.1.8.tar.gz

//Let’s enter “magento” directory

# cd magento

//move all files out of the “magento” directory

# mv * ..

// get out of the “magento” directory

# cd ..

//Set correct Permission (!!! Skip this if your account is on suexec/suphp environment !!!)

# chmod 777 var var/.htaccess app/etc

# chmod -R 777 media

Are you still with me so far? Let’s Import sample data now.

//decompress the sample data
# tar zxfv magento-sample-data-1.1.2.tar.gz

//Enter magento sample data directory

# cd magento-sample-data-1.1.2

//import sample data to your mysql database.

# mysql -u mysqlusername -ppassword databasename < magento_sample_data_for_1.1.2.sql

//Clear up the mess

# cd ..

# rm -rf magento magento-sample-data-1.1.2
# rm -rf magento-1.1.8.tar.gz magento-sample-data-1.1.2.tar.gz

//Start the web installation wizard

www.yourdomain.com/install.php

or you have install magento to a directory

www.yourdomain.com/subdirectory/install.php

or you have install magento to a subdomain

subdomain.yourdomain.com/install.php

I hope the guide helps you in a way or another. Feel free to post comment if there is anything to improve on.

Have a good day.

Add A Comment

You must be logged in to post a comment.