Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Magento 1.8 With Sample Data By SSH
mkdir demo
cd demo
wget http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz
wget http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz
tar -zxvf magento-1.8.1.0.tar.gz
tar -zxvf magento-sample-data-1.6.1.0.tar.gz
mv magento-sample-data-1.6.1.0/media/* magento/media/
mv magento-sample-data-1.6.1.0/magento_sample_data_for_1.6.1.0.sql magento/data.sql
mv magento/* magento/.htaccess .
chmod o+w var var/.htaccess app/etc
chmod -R o+w media
mysql -h localhost -u root -proot clean < data.sql
chmod 755 mage
./mage mage-setup .
@jeremyronking

This comment has been minimized.

Copy link

commented Jun 26, 2013

Thanks for this. VERY convenient.

@tonyoconnell

This comment has been minimized.

Copy link
Owner Author

commented Aug 4, 2013

You're welcome Jeremy

@ghost

This comment has been minimized.

Copy link

commented Aug 5, 2013

how does it works. Where can i use these Codes. Is there any install-guide?

@pearsonc

This comment has been minimized.

Copy link

commented Sep 18, 2013

Thanks for this, I always forget what permissions to set on what files. very useful little guide

@manishmore

This comment has been minimized.

Copy link

commented Dec 27, 2013

thanks for very simple steps ...

@i2eu

This comment has been minimized.

Copy link

commented Jan 4, 2014

Dear tony,

thanks first. when I use the sentence "mysql -h localhost -u oneie_oneie -p100ppneoc oneie_demo < data.sql", it replies Access denied for user"oneie_oneie". then I changed oneie_oneie to mysql admin name "Magento", but it still showes "access denied for user "Magento", could you help to expain...

tks.
Rgds,

@HydJing

This comment has been minimized.

Copy link

commented Jul 5, 2015

Thanks, it really helps me a lot

@electroidru

This comment has been minimized.

Copy link

commented Jan 4, 2016

no direct downloads in possible anymore, so the right way is here https://gist.github.com/piotrekkaminski/9bc45ec84028611d621e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.