Skip to content

Instantly share code, notes, and snippets.

@W360S
Forked from rafaelstz/Install-Magento-1.md
Last active August 21, 2016 01:08
Show Gist options
  • Save W360S/92398dde991ac5125297d8d332a90a34 to your computer and use it in GitHub Desktop.
Save W360S/92398dde991ac5125297d8d332a90a34 to your computer and use it in GitHub Desktop.
Install Magento 1.9.2.4 (With Sample Data)

sudo apt-get update && sudo apt-get install -y git wget unzip

git clone https://github.com/OpenMage/magento-mirror.git ./ ;

wget https://raw.githubusercontent.com/Vinai/compressed-magento-sample-data/1.9.1.0/compressed-magento-sample-data-1.9.1.0.tgz ;

tar -xf compressed-magento-sample-data-1.9.1.0.tgz ;

cp -rv magento-sample-data-1.9.1.0/* ./ ;

rm -rf magento-sample-data-1.9.1.0/ ;

wget http://mariosam.com.br/wp-content/uploads/2013/02/Traducao_Magento_ptBR_19xx_MarioSAM_v12.zip ;

unzip Traducao_Magento_ptBR_19xx_MarioSAM_v12.zip ;

cp Traducao_Magento_ptBR_19xx_MarioSAM/pt_BR app/locale/ ;

cp -rv Traducao_Magento_ptBR_19xx_MarioSAM/rwd/ app/design/frontend/ ;

rm -rf Traducao_Magento_ptBR_19xx_MarioSAM Traducao_Magento_ptBR_19xx_MarioSAM_v12.zip ;

n98 local-config:generate -q localhost root root magento files admin;

n98 db:create ;

n98 db:import magento_sample_data_for_1.9.1.0.sql ;

n98 config:set "web/secure/base_url" "http://dev.local/magento/" ;

n98 config:set "web/unsecure/base_url" "http://dev.local/magento/" ;

n98 admin:user:create admin [email protected] admin1234 Rafael Gomes ;

n98 customer:create [email protected] admin1234 Rafael Gomes -q ;

n98 admin:notifications ;

n98 design:demo-notice --off --global -q ;

n98 config:set web/seo/use_rewrites 0 ;

n98 cache:disable ;nr;nc ;

chmod -R o+w media var ;

chmod o+w app/etc ;

find . -type d -exec chmod 775 '{}' ;

find . -type f -exec chmod 644 '{}' ;

chmod -Rv 777 app/etc var/ media/ ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment