Skip to content

Instantly share code, notes, and snippets.

@rafaelstz
Last active February 8, 2025 08:01
Show Gist options
  • Select an option

  • Save rafaelstz/a16b66f722f0786d6730 to your computer and use it in GitHub Desktop.

Select an option

Save rafaelstz/a16b66f722f0786d6730 to your computer and use it in GitHub Desktop.

Revisions

  1. rafaelstz revised this gist Nov 29, 2019. No changes.
  2. rafaelstz revised this gist Nov 29, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@

    n98 config:set web/seo/use_rewrites 0 ;

    n98 cache:disable ;
    n98 cache:flush ;
    n98 index:reindex:all;

    chmod -R o+w media var ;
  3. rafaelstz revised this gist Sep 27, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -21,13 +21,13 @@

    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/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
    ## Installing using n98-magerun tool

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

  4. rafaelstz revised this gist Jun 9, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -52,7 +52,7 @@
    n98 config:set web/seo/use_rewrites 0 ;

    n98 cache:disable ;
    n98 index:reindex:all
    n98 index:reindex:all;

    chmod -R o+w media var ;

  5. rafaelstz revised this gist Jun 9, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -51,8 +51,9 @@

    n98 config:set web/seo/use_rewrites 0 ;

    n98 cache:disable ;nr;nc ;

    n98 cache:disable ;
    n98 index:reindex:all

    chmod -R o+w media var ;

    chmod o+w app/etc ;
  6. rafaelstz revised this gist Jun 7, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,7 @@

    n98 db:create ;

    n98 db:import magento_sample_data_for_1.9.1.0.sql ;
    n98 db:import --drop magento_sample_data_for_1.9.1.0.sql ;

    url=http://magento.test/

  7. rafaelstz revised this gist Jun 7, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -41,9 +41,9 @@

    n98 config:set "web/unsecure/base_url" $url ;

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

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

    n98 admin:notifications ;

  8. rafaelstz revised this gist Jun 7, 2018. 1 changed file with 15 additions and 5 deletions.
    20 changes: 15 additions & 5 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    sudo apt-get update &&
    ```bash

    ## Magento 1 + SampleData

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

    git clone https://github.com/OpenMage/magento-mirror.git ./ ;
    @@ -11,6 +15,8 @@

    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 ;
    @@ -21,21 +27,23 @@

    rm -rf Traducao_Magento_ptBR_19xx_MarioSAM Traducao_Magento_ptBR_19xx_MarioSAM_v12.zip ;

    ## Installing

    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 ;

    url=http://ubuntu.dev/
    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 admin@admin.com admin1234 Rafael Gomes ;
    n98 admin:user:create admin rafael@magento.com admin1234 Rafael Gomes ;

    n98 customer:create rafael@admin.com.br admin1234 Rafael Gomes -q ;
    n98 customer:create rafael@magento.com admin1234 Rafael Gomes -q ;

    n98 admin:notifications ;

    @@ -53,4 +61,6 @@

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

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

    ```
  9. rafaelstz revised this gist May 12, 2017. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -27,9 +27,11 @@

    n98 db:import magento_sample_data_for_1.9.1.0.sql ;

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

    n98 config:set "web/secure/base_url" $url ;

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

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

  10. rafaelstz revised this gist Apr 5, 2016. 1 changed file with 9 additions and 8 deletions.
    17 changes: 9 additions & 8 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,25 @@
    git clone https://github.com/OpenMage/magento-mirror.git magento ;
    sudo apt-get update &&
    sudo apt-get install -y git wget unzip

    cd magento ;
    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 ;

    extract 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/* ./ ;
    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 ;
    unzip 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 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/ ;
    cp -rv Traducao_Magento_ptBR_19xx_MarioSAM/rwd/ app/design/frontend/ ;

    rm -rf Traducao_Magento_ptBR_19xx_MarioSAM_v12/ Traducao_Magento_ptBR_19xx_MarioSAM_v12.zip ;
    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;

  11. rafaelstz revised this gist Mar 30, 2016. No changes.
  12. rafaelstz revised this gist Feb 10, 2016. No changes.
  13. rafaelstz revised this gist Feb 9, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -46,8 +46,8 @@

    chmod o+w app/etc ;

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

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

    chmod -Rv 777 app/etc var/ media/ ;
  14. rafaelstz revised this gist Jan 21, 2016. No changes.
  15. rafaelstz revised this gist Jan 13, 2016. No changes.
  16. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,16 @@

    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 ;
  17. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,8 @@

    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 ;
  18. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -26,7 +26,7 @@

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

    n98 config:set web/seo/use_rewrites 0
    n98 config:set web/seo/use_rewrites 0 ;

    n98 cache:disable ;nr;nc ;

  19. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -26,6 +26,8 @@

    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 ;
  20. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,8 @@
    n98 admin:user:create admin [email protected] admin1234 Rafael Gomes ;

    n98 admin:notifications ;

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

    n98 cache:disable ;nr;nc ;

  21. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,9 @@

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

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

    n98 admin:notifications ;

    n98 cache:disable ;nr;nc ;

  22. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -19,6 +19,8 @@
    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 cache:disable ;nr;nc ;

  23. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@

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

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

    n98 db:create ;

  24. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@
    ## Install Magento 1.9.2.2 (With Sample Data)

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

    cd magento ;
  25. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ## Install Magento 1.9.2.2 (With Sample Data)

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

    cd magento ;
  26. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    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 ;

  27. rafaelstz revised this gist Jan 13, 2016. 1 changed file with 13 additions and 14 deletions.
    27 changes: 13 additions & 14 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -1,32 +1,31 @@
    git clone https://github.com/OpenMage/magento-mirror.git;

    mv magento-mirror/.git magento-mirror/.gitignore magento-mirror/.htaccess * ./ ;
    git clone https://github.com/OpenMage/magento-mirror.git magento ;

    wget https://raw.githubusercontent.com/Vinai/compressed-magento-sample-data/1.9.1.0/compressed-magento-sample-data-1.9.1.0.tgz;
    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 ./;
    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/;
    rm -rf magento-sample-data-1.9.1.0/ ;

    n98 local-config:generate localhost root root magento ;

    n98 db:create ;

    n98 db:import magento_sample_data_for_1.9.1.0.sql;
    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/secure/base_url" "http://dev.local/magento/" ;

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

    n98 cache:disable ;nr;nc ;

    chmod -R o+w media var;
    chmod -R o+w media var ;

    chmod o+w app/etc;
    chmod o+w app/etc ;

    find . -type d -exec chmod 755 {} \;
    find . -type d -exec chmod 755 {} \ ;

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

    chmod -Rv 777 app/etc var/ media/;
    chmod -Rv 777 app/etc var/ media/ ;
  28. rafaelstz revised this gist Jan 13, 2016. 2 changed files with 32 additions and 15 deletions.
    32 changes: 32 additions & 0 deletions Install-Magento-1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    git clone https://github.com/OpenMage/magento-mirror.git;

    mv magento-mirror/.git magento-mirror/.gitignore magento-mirror/.htaccess * ./ ;

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

    n98 local-config:generate localhost root root magento ;

    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/";


    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/;
    15 changes: 0 additions & 15 deletions Install-Magento.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +0,0 @@
    wget http://www.magentocommerce.com/downloads/assets/1.9.1.1/magento-1.9.1.1.tar.gz;

    tar -zxvf magento-1.9.1.1.tar.gz;

    mv magento/* magento/.htaccess .;

    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/;
  29. rafaelstz created this gist May 8, 2015.
    15 changes: 15 additions & 0 deletions Install-Magento.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    wget http://www.magentocommerce.com/downloads/assets/1.9.1.1/magento-1.9.1.1.tar.gz;

    tar -zxvf magento-1.9.1.1.tar.gz;

    mv magento/* magento/.htaccess .;

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