Magento 2.1 pub/static permissionMagento 2 static deploy en_US argument invalid on XAMPPRunning “bin/magento setup:static-content:deploy” gives “Permission denied”Migrating Magento 1.9.1.1 to Magento 2 using Migration Tool errorMagento 2 Permission error - RESETMagento 2 Module upgrade errorError “_colors.less” during static-content:deployTry to install magento migration tool failsFolder permission on Magento2Magento 2 Add custom font to Email TemplateMagento 2: Permission issue with generated directory

How is it possible to have an ability score that is less than 3?

NMaximize is not converging to a solution

Replacing matching entries in one column of a file by another column from a different file

How does one intimidate enemies without having the capacity for violence?

Can I make popcorn with any corn?

What does "Puller Prush Person" mean?

Revoked SSL certificate

Is it possible to run Internet Explorer on OS X El Capitan?

Could an aircraft fly or hover using only jets of compressed air?

What typically incentivizes a professor to change jobs to a lower ranking university?

Was any UN Security Council vote triple-vetoed?

What would happen to a modern skyscraper if it rains micro blackholes?

How to determine what difficulty is right for the game?

What is a clear way to write a bar that has an extra beat?

Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?

Watching something be written to a file live with tail

How old can references or sources in a thesis be?

Did Shadowfax go to Valinor?

How much of data wrangling is a data scientist's job?

Roll the carpet

A case of the sniffles

Why can't we play rap on piano?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Decision tree nodes overlapping with Tikz



Magento 2.1 pub/static permission


Magento 2 static deploy en_US argument invalid on XAMPPRunning “bin/magento setup:static-content:deploy” gives “Permission denied”Migrating Magento 1.9.1.1 to Magento 2 using Migration Tool errorMagento 2 Permission error - RESETMagento 2 Module upgrade errorError “_colors.less” during static-content:deployTry to install magento migration tool failsFolder permission on Magento2Magento 2 Add custom font to Email TemplateMagento 2: Permission issue with generated directory






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















i have some trouble when i run command php binmagento setup:static-content:deploy



it always keep missing permission when create new folder even after i assign full permission (i'm using windows) and tick 'apply to subfolder and files', this permission is not inherited in new folder



is this some bug on magento and is there any way to fix this?



PS: my magento is on dev server which is running CentOs and my local computer is running windows 7










share|improve this question






















  • use sudo php binmagento setup:static-content:deploy

    – inrsaurabh
    Dec 22 '17 at 7:03











  • @SaurabhRanjan since i use windows in my local, so i need to run cmd in administrator

    – Sandy
    Dec 22 '17 at 7:10











  • I am not sure you could run Magento2 in a proper way in a Windows machine

    – Raul Sanchez
    Dec 22 '17 at 10:38

















0















i have some trouble when i run command php binmagento setup:static-content:deploy



it always keep missing permission when create new folder even after i assign full permission (i'm using windows) and tick 'apply to subfolder and files', this permission is not inherited in new folder



is this some bug on magento and is there any way to fix this?



PS: my magento is on dev server which is running CentOs and my local computer is running windows 7










share|improve this question






















  • use sudo php binmagento setup:static-content:deploy

    – inrsaurabh
    Dec 22 '17 at 7:03











  • @SaurabhRanjan since i use windows in my local, so i need to run cmd in administrator

    – Sandy
    Dec 22 '17 at 7:10











  • I am not sure you could run Magento2 in a proper way in a Windows machine

    – Raul Sanchez
    Dec 22 '17 at 10:38













0












0








0








i have some trouble when i run command php binmagento setup:static-content:deploy



it always keep missing permission when create new folder even after i assign full permission (i'm using windows) and tick 'apply to subfolder and files', this permission is not inherited in new folder



is this some bug on magento and is there any way to fix this?



PS: my magento is on dev server which is running CentOs and my local computer is running windows 7










share|improve this question














i have some trouble when i run command php binmagento setup:static-content:deploy



it always keep missing permission when create new folder even after i assign full permission (i'm using windows) and tick 'apply to subfolder and files', this permission is not inherited in new folder



is this some bug on magento and is there any way to fix this?



PS: my magento is on dev server which is running CentOs and my local computer is running windows 7







magento2 magento-2.1 permissions






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 22 '17 at 7:01









SandySandy

1




1












  • use sudo php binmagento setup:static-content:deploy

    – inrsaurabh
    Dec 22 '17 at 7:03











  • @SaurabhRanjan since i use windows in my local, so i need to run cmd in administrator

    – Sandy
    Dec 22 '17 at 7:10











  • I am not sure you could run Magento2 in a proper way in a Windows machine

    – Raul Sanchez
    Dec 22 '17 at 10:38

















  • use sudo php binmagento setup:static-content:deploy

    – inrsaurabh
    Dec 22 '17 at 7:03











  • @SaurabhRanjan since i use windows in my local, so i need to run cmd in administrator

    – Sandy
    Dec 22 '17 at 7:10











  • I am not sure you could run Magento2 in a proper way in a Windows machine

    – Raul Sanchez
    Dec 22 '17 at 10:38
















use sudo php binmagento setup:static-content:deploy

– inrsaurabh
Dec 22 '17 at 7:03





use sudo php binmagento setup:static-content:deploy

– inrsaurabh
Dec 22 '17 at 7:03













@SaurabhRanjan since i use windows in my local, so i need to run cmd in administrator

– Sandy
Dec 22 '17 at 7:10





@SaurabhRanjan since i use windows in my local, so i need to run cmd in administrator

– Sandy
Dec 22 '17 at 7:10













I am not sure you could run Magento2 in a proper way in a Windows machine

– Raul Sanchez
Dec 22 '17 at 10:38





I am not sure you could run Magento2 in a proper way in a Windows machine

– Raul Sanchez
Dec 22 '17 at 10:38










3 Answers
3






active

oldest

votes


















0














Set permission by using below command, it will set recursively permission



chmod -Rf 755 pub;chmod -Rf 755 var;





share|improve this answer






























    0














    try this



    chmod -R 777 pub/static 





    share|improve this answer























    • Hi, i have tried to set chmod 777 but still have some folders not have the permission. should i run this on my server directly and use root to run the command ?

      – Sandy
      Dec 28 '17 at 6:42











    • sudo chmod -R 777 pub/static

      – Ravindrasinh Zala
      Dec 28 '17 at 6:48


















    0














    Magento 2 recommended folder and file permission



    Please follow following terminal commands for folder and file permission.



    find . -type f -exec chmod 644 ;

    find . -type d -exec chmod 755 ;

    find var pub/static pub/media generated/ app/etc -type f -exec chmod g+w ;

    find var pub/static pub/media generated/ app/etc -type d -exec chmod g+ws ;
    chown -R :<web server group> .

    chmod u+x bin/magento





    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f206862%2fmagento-2-1-pub-static-permission%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Set permission by using below command, it will set recursively permission



      chmod -Rf 755 pub;chmod -Rf 755 var;





      share|improve this answer



























        0














        Set permission by using below command, it will set recursively permission



        chmod -Rf 755 pub;chmod -Rf 755 var;





        share|improve this answer

























          0












          0








          0







          Set permission by using below command, it will set recursively permission



          chmod -Rf 755 pub;chmod -Rf 755 var;





          share|improve this answer













          Set permission by using below command, it will set recursively permission



          chmod -Rf 755 pub;chmod -Rf 755 var;






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 22 '17 at 10:34









          Navin BhudiyaNavin Bhudiya

          7731024




          7731024























              0














              try this



              chmod -R 777 pub/static 





              share|improve this answer























              • Hi, i have tried to set chmod 777 but still have some folders not have the permission. should i run this on my server directly and use root to run the command ?

                – Sandy
                Dec 28 '17 at 6:42











              • sudo chmod -R 777 pub/static

                – Ravindrasinh Zala
                Dec 28 '17 at 6:48















              0














              try this



              chmod -R 777 pub/static 





              share|improve this answer























              • Hi, i have tried to set chmod 777 but still have some folders not have the permission. should i run this on my server directly and use root to run the command ?

                – Sandy
                Dec 28 '17 at 6:42











              • sudo chmod -R 777 pub/static

                – Ravindrasinh Zala
                Dec 28 '17 at 6:48













              0












              0








              0







              try this



              chmod -R 777 pub/static 





              share|improve this answer













              try this



              chmod -R 777 pub/static 






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Dec 22 '17 at 10:35









              Ravindrasinh ZalaRavindrasinh Zala

              1,271322




              1,271322












              • Hi, i have tried to set chmod 777 but still have some folders not have the permission. should i run this on my server directly and use root to run the command ?

                – Sandy
                Dec 28 '17 at 6:42











              • sudo chmod -R 777 pub/static

                – Ravindrasinh Zala
                Dec 28 '17 at 6:48

















              • Hi, i have tried to set chmod 777 but still have some folders not have the permission. should i run this on my server directly and use root to run the command ?

                – Sandy
                Dec 28 '17 at 6:42











              • sudo chmod -R 777 pub/static

                – Ravindrasinh Zala
                Dec 28 '17 at 6:48
















              Hi, i have tried to set chmod 777 but still have some folders not have the permission. should i run this on my server directly and use root to run the command ?

              – Sandy
              Dec 28 '17 at 6:42





              Hi, i have tried to set chmod 777 but still have some folders not have the permission. should i run this on my server directly and use root to run the command ?

              – Sandy
              Dec 28 '17 at 6:42













              sudo chmod -R 777 pub/static

              – Ravindrasinh Zala
              Dec 28 '17 at 6:48





              sudo chmod -R 777 pub/static

              – Ravindrasinh Zala
              Dec 28 '17 at 6:48











              0














              Magento 2 recommended folder and file permission



              Please follow following terminal commands for folder and file permission.



              find . -type f -exec chmod 644 ;

              find . -type d -exec chmod 755 ;

              find var pub/static pub/media generated/ app/etc -type f -exec chmod g+w ;

              find var pub/static pub/media generated/ app/etc -type d -exec chmod g+ws ;
              chown -R :<web server group> .

              chmod u+x bin/magento





              share|improve this answer



























                0














                Magento 2 recommended folder and file permission



                Please follow following terminal commands for folder and file permission.



                find . -type f -exec chmod 644 ;

                find . -type d -exec chmod 755 ;

                find var pub/static pub/media generated/ app/etc -type f -exec chmod g+w ;

                find var pub/static pub/media generated/ app/etc -type d -exec chmod g+ws ;
                chown -R :<web server group> .

                chmod u+x bin/magento





                share|improve this answer

























                  0












                  0








                  0







                  Magento 2 recommended folder and file permission



                  Please follow following terminal commands for folder and file permission.



                  find . -type f -exec chmod 644 ;

                  find . -type d -exec chmod 755 ;

                  find var pub/static pub/media generated/ app/etc -type f -exec chmod g+w ;

                  find var pub/static pub/media generated/ app/etc -type d -exec chmod g+ws ;
                  chown -R :<web server group> .

                  chmod u+x bin/magento





                  share|improve this answer













                  Magento 2 recommended folder and file permission



                  Please follow following terminal commands for folder and file permission.



                  find . -type f -exec chmod 644 ;

                  find . -type d -exec chmod 755 ;

                  find var pub/static pub/media generated/ app/etc -type f -exec chmod g+w ;

                  find var pub/static pub/media generated/ app/etc -type d -exec chmod g+ws ;
                  chown -R :<web server group> .

                  chmod u+x bin/magento






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered yesterday









                  ARUNPRABAKARAN MARUNPRABAKARAN M

                  385113




                  385113



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f206862%2fmagento-2-1-pub-static-permission%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Bulk add to cart function issuecart vs. mini cart issue … rwd themeRedirect Add to cart button to cart pageAdd to cart issue - Magento 2.1The requested Payment Method is not available When creating an orderM2: reason add-to-cart might not function in production modeAdd to cart issue in some android devicesMagento 2 - custom price can not add to subtotal and grand total after add to cartAdd to cart codeIssue with my cart module on pdp and cart pages, just keeps spinningBulk price and quantity update using rest api

                      Magento2 - How to hide price filter only in specific categories?Multiselect price filter attribute in layered navigationhide only some categories from layered navigation in magentoRemove Price Filter on certain categoriescustomize layered price filter?Hide Price for a particular customer groupPrice filter in layered navigation not working correctly with price including tax in magento 2.2.3Magento 2 how to hide attribute at Layered navigation?Magento 2. how to hide price only for specific categoriesMagento 2 How can I hide the price and total from cart and checkout summary?Magento2: Can we add navigation layered filter like price filter for other attribute?