## Magento 1 + SampleData
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/ ;
## Translate pt_BR
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 -rv 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 ;
## Installing using n98-magerun tool
n98 local-config:generate -q localhost root root magento files admin;
n98 db:create ;
n98 db:import --drop magento_sample_data_for_1.9.1.0.sql ;
url=http://magento.test/
n98 config:set "web/secure/base_url" $url ;
n98 config:set "web/unsecure/base_url" $url ;
n98 admin:user:create admin [email protected] admin123 Rafael Gomes ;
n98 customer:create [email protected] admin123 Rafael Gomes -q ;
n98 admin:notifications ;
n98 design:demo-notice --off --global -q ;
n98 config:set web/seo/use_rewrites 0 ;
n98 cache:flush ;
n98 index:reindex:all;
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/ ;
Last active
February 8, 2025 08:01
-
-
Save rafaelstz/a16b66f722f0786d6730 to your computer and use it in GitHub Desktop.
Install Magento 1.9 (With Sample Data)
Thank you very much
awesome
What is n98? If it's a third party application then please document it in pre-requisites (install before you execute commands).
I dislike the things that are not properly documented.
da hora!
What is n98?
what is n98
n98 is an alias for n98-magerun, which is this tool:
https://github.com/netz98/n98-magerun
I did install n98-magerun and run your gist. worked perfectly. Thank you so much! :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you sir