Install Magento in 5 Minutes
September 29th, 2008
So you’ve heard all about Magento Commerce and now you’ve decided to give it a try. Unfortunately, you realize that installation and configuration is proving a bit more difficult that you’d first imagined. If your web host supports SSH, your life is about to get a whole lot easier.
wget http://www.magentocommerce.com/downloads/assets/1.1.6/magento-1.1.6.tar.gz wget http://www.magentocommerce.com/downloads/assets/1.1.2/magento-sample-data-1.1.2.tar.gz tar -zxvf magento-1.1.6.tar.gz tar -zxvf magento-sample-data-1.1.2.tar.gz mv magento-sample-data-1.1.2/media/* magento/media/ mv magento-sample-data-1.1.2/magento_sample_data_for_1.1.2.sql magento/data.sql mv magento/* magento/.htaccess . chmod o+w var var/.htaccess app/etc chmod -R o+w media mysql -h DBHOST -u DBUSER -pDBPASS DBNAME < data.sql ./pear mage-setup . ./pear install -f magento-core/Mage_All_Latest-stable rm -rf downloader/pearlib/cache/* downloader/pearlib/download/* rm -rf magento/ magento-sample-data-1.1.2/ rm -rf magento-1.1.6.tar.gz magento-sample-data-1.1.2.tar.gz data.sql
Just change the DBHOST, DBUSER, DBPASS, and DBNAME settings in the code snippet above and run it in your httpdocs (or equivalent) directory! Bam, in less than 5 minutes you’re all ready to go! Enjoy Magento!