Skip to content

Instantly share code, notes, and snippets.

@deniscsz
Forked from rafaelstz/Install-Magento-1.md
Created January 14, 2016 16:22
Show Gist options
  • Save deniscsz/7604ee2f9c3b7355981b to your computer and use it in GitHub Desktop.
Save deniscsz/7604ee2f9c3b7355981b to your computer and use it in GitHub Desktop.
Install Magento 1.9.2.2 (With Sample Data)

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

cd magento ;

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

extract 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 ;

extract Traducao_Magento_ptBR_19xx_MarioSAM_v12.zip ;

cp -furv Traducao_Magento_ptBR_19xx_MarioSAM_v12/Traducao_Magento_ptBR_19xx_MarioSAM/pt_BR app/locale/ ;

cp -furv Traducao_Magento_ptBR_19xx_MarioSAM_v12/Traducao_Magento_ptBR_19xx_MarioSAM/rwd app/design/frontend/ ;

rm -rf Traducao_Magento_ptBR_19xx_MarioSAM_v12/ 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 755 {} \ ;

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

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

@sigmawadbude
Copy link

what is n98

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