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

Does the Idaho Potato Commission associate potato skins with healthy eating?

Should I cover my bicycle overnight while bikepacking?

How to tell a function to use the default argument values?

How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?

How do I gain back my faith in my PhD degree?

One verb to replace 'be a member of' a club

How badly should I try to prevent a user from XSSing themselves?

How to prevent "they're falling in love" trope

What does “the session was packed” mean in this context?

Why no variance term in Bayesian logistic regression?

Short story with a alien planet, government officials must wear exploding medallions

How seriously should I take size and weight limits of hand luggage?

Is it inappropriate for a student to attend their mentor's dissertation defense?

What is a romance in Latin?

Are there any examples of a variable being normally distributed that is *not* due to the Central Limit Theorem?

What does the expression "A Mann!" means

In 'Revenger,' what does 'cove' come from?

Why doesn't using multiple commands with a || or && conditional work?

Avoiding the "not like other girls" trope?

Why does this cyclic subgroup have only 4 subgroups?

How dangerous is XSS?

Would Slavery Reparations be considered Bills of Attainder and hence Illegal?

Is this a hacking script in function.php?

What killed these X2 caps?



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













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














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • 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














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • 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





bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • 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










2 Answers
2






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











    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

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    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

        7661024




        7661024























            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

















            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