Install issue permission and htaccess Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Trying to install magento 2 and get page_cache is not writablePermission Denied htaccess in folders where no htaccess file even existsAccess Denied (Permission Issue) after upgrade 2.0.3 -> 2.0.4Magento 2 - How to set chown and chmod for root folder and sub folder in linux (centos 6.5)Magento 2.1 CE Installed but front/backend not loading/workingMagento 2: Unable to write file into directory. Access forbiddenCron job permission issue?Error 500 after magento migrationMagento2 Error 404 Admin after installIn production mode the site does not load

“Since the train was delayed for more than an hour, passengers were given a full refund.” – Why is there no article before “passengers”?

A journey... into the MIND

How can I introduce the names of fantasy creatures to the reader?

Why these surprising proportionalities of integrals involving odd zeta values?

What were wait-states, and why was it only an issue for PCs?

Pointing to problems without suggesting solutions

Who can become a wight?

Raising a bilingual kid. When should we introduce the majority language?

Lights are flickering on and off after accidentally bumping into light switch

Proving inequality for positive definite matrix

Why aren't these two solutions equivalent? Combinatorics problem

Can gravitational waves pass through a black hole?

What's the connection between Mr. Nancy and fried chicken?

What documents does someone with a long-term visa need to travel to another Schengen country?

Providing direct feedback to a product salesperson

Is Vivien of the Wilds + Wilderness Reclamation a competitive combo?

A German immigrant ancestor has a "Registration Affidavit of Alien Enemy" on file. What does that mean exactly?

Recursive calls to a function - why is the address of the parameter passed to it lowering with each call?

Determine the generator of an ideal of ring of integers

When does Bran Stark remember Jamie pushing him?

How was Lagrange appointed professor of mathematics so early?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'

Will I be more secure with my own router behind my ISP's router?



Install issue permission and htaccess



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Trying to install magento 2 and get page_cache is not writablePermission Denied htaccess in folders where no htaccess file even existsAccess Denied (Permission Issue) after upgrade 2.0.3 -> 2.0.4Magento 2 - How to set chown and chmod for root folder and sub folder in linux (centos 6.5)Magento 2.1 CE Installed but front/backend not loading/workingMagento 2: Unable to write file into directory. Access forbiddenCron job permission issue?Error 500 after magento migrationMagento2 Error 404 Admin after installIn production mode the site does not load



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








0















I'm trying to install Magento 2. I run this for permission file and folder



chown -R admin:www-data /var/www/magento2
find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640
find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750
chmod -R g+w /var/www/magento2/pub,var


I use default Magento2 .htaccess file (permission is 660, i tried other permission like 750) but still got this error




Forbidden



You don't have permission to access / on this server. Server unable to
read htaccess file, denying access to be safe




I tried to add this on .htaccess file but not work



<Directory /mymagento2-folder/>
AllowOverride None
</Directory>


What should I check or try to see magento2 install page?










share|improve this question




























    0















    I'm trying to install Magento 2. I run this for permission file and folder



    chown -R admin:www-data /var/www/magento2
    find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640
    find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750
    chmod -R g+w /var/www/magento2/pub,var


    I use default Magento2 .htaccess file (permission is 660, i tried other permission like 750) but still got this error




    Forbidden



    You don't have permission to access / on this server. Server unable to
    read htaccess file, denying access to be safe




    I tried to add this on .htaccess file but not work



    <Directory /mymagento2-folder/>
    AllowOverride None
    </Directory>


    What should I check or try to see magento2 install page?










    share|improve this question
























      0












      0








      0








      I'm trying to install Magento 2. I run this for permission file and folder



      chown -R admin:www-data /var/www/magento2
      find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640
      find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750
      chmod -R g+w /var/www/magento2/pub,var


      I use default Magento2 .htaccess file (permission is 660, i tried other permission like 750) but still got this error




      Forbidden



      You don't have permission to access / on this server. Server unable to
      read htaccess file, denying access to be safe




      I tried to add this on .htaccess file but not work



      <Directory /mymagento2-folder/>
      AllowOverride None
      </Directory>


      What should I check or try to see magento2 install page?










      share|improve this question














      I'm trying to install Magento 2. I run this for permission file and folder



      chown -R admin:www-data /var/www/magento2
      find /var/www/magento2 -type f -print0 | xargs -r0 chmod 640
      find /var/www/magento2 -type d -print0 | xargs -r0 chmod 750
      chmod -R g+w /var/www/magento2/pub,var


      I use default Magento2 .htaccess file (permission is 660, i tried other permission like 750) but still got this error




      Forbidden



      You don't have permission to access / on this server. Server unable to
      read htaccess file, denying access to be safe




      I tried to add this on .htaccess file but not work



      <Directory /mymagento2-folder/>
      AllowOverride None
      </Directory>


      What should I check or try to see magento2 install page?







      magento2 server-setup






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 4 '15 at 15:47









      MoonMoon

      76172343




      76172343




















          3 Answers
          3






          active

          oldest

          votes


















          0














          If using Apache 2.4, try similar virtual hosts config:



          <VirtualHost *:80>
          DocumentRoot "/var/www/magento2ce"
          ServerName magento2.vagrant
          <Directory /var/www/magento2ce>
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
          </Directory>
          </VirtualHost>


          If Apache 2.2, then replace Require all granted with Allow from all. See more details in the official dev docs.






          share|improve this answer























          • this is maybe a bad idea to grant access.

            – MagenX
            Dec 4 '15 at 23:24











          • @MagenX what is better option? This one seems to be officially recommended.

            – Alex Paliarush
            Dec 5 '15 at 9:44


















          0














          probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid



          just to debug this issue set permissions 644/755



          and is .htaccess available?






          share|improve this answer






























            0














            Please set default permission for Magento 2 root directory by running following command:



            sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento


            I hope it works for you.






            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%2f92681%2finstall-issue-permission-and-htaccess%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














              If using Apache 2.4, try similar virtual hosts config:



              <VirtualHost *:80>
              DocumentRoot "/var/www/magento2ce"
              ServerName magento2.vagrant
              <Directory /var/www/magento2ce>
              Options Indexes FollowSymLinks
              AllowOverride All
              Require all granted
              </Directory>
              </VirtualHost>


              If Apache 2.2, then replace Require all granted with Allow from all. See more details in the official dev docs.






              share|improve this answer























              • this is maybe a bad idea to grant access.

                – MagenX
                Dec 4 '15 at 23:24











              • @MagenX what is better option? This one seems to be officially recommended.

                – Alex Paliarush
                Dec 5 '15 at 9:44















              0














              If using Apache 2.4, try similar virtual hosts config:



              <VirtualHost *:80>
              DocumentRoot "/var/www/magento2ce"
              ServerName magento2.vagrant
              <Directory /var/www/magento2ce>
              Options Indexes FollowSymLinks
              AllowOverride All
              Require all granted
              </Directory>
              </VirtualHost>


              If Apache 2.2, then replace Require all granted with Allow from all. See more details in the official dev docs.






              share|improve this answer























              • this is maybe a bad idea to grant access.

                – MagenX
                Dec 4 '15 at 23:24











              • @MagenX what is better option? This one seems to be officially recommended.

                – Alex Paliarush
                Dec 5 '15 at 9:44













              0












              0








              0







              If using Apache 2.4, try similar virtual hosts config:



              <VirtualHost *:80>
              DocumentRoot "/var/www/magento2ce"
              ServerName magento2.vagrant
              <Directory /var/www/magento2ce>
              Options Indexes FollowSymLinks
              AllowOverride All
              Require all granted
              </Directory>
              </VirtualHost>


              If Apache 2.2, then replace Require all granted with Allow from all. See more details in the official dev docs.






              share|improve this answer













              If using Apache 2.4, try similar virtual hosts config:



              <VirtualHost *:80>
              DocumentRoot "/var/www/magento2ce"
              ServerName magento2.vagrant
              <Directory /var/www/magento2ce>
              Options Indexes FollowSymLinks
              AllowOverride All
              Require all granted
              </Directory>
              </VirtualHost>


              If Apache 2.2, then replace Require all granted with Allow from all. See more details in the official dev docs.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Dec 4 '15 at 17:24









              Alex PaliarushAlex Paliarush

              11.1k23851




              11.1k23851












              • this is maybe a bad idea to grant access.

                – MagenX
                Dec 4 '15 at 23:24











              • @MagenX what is better option? This one seems to be officially recommended.

                – Alex Paliarush
                Dec 5 '15 at 9:44

















              • this is maybe a bad idea to grant access.

                – MagenX
                Dec 4 '15 at 23:24











              • @MagenX what is better option? This one seems to be officially recommended.

                – Alex Paliarush
                Dec 5 '15 at 9:44
















              this is maybe a bad idea to grant access.

              – MagenX
              Dec 4 '15 at 23:24





              this is maybe a bad idea to grant access.

              – MagenX
              Dec 4 '15 at 23:24













              @MagenX what is better option? This one seems to be officially recommended.

              – Alex Paliarush
              Dec 5 '15 at 9:44





              @MagenX what is better option? This one seems to be officially recommended.

              – Alex Paliarush
              Dec 5 '15 at 9:44













              0














              probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid



              just to debug this issue set permissions 644/755



              and is .htaccess available?






              share|improve this answer



























                0














                probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid



                just to debug this issue set permissions 644/755



                and is .htaccess available?






                share|improve this answer

























                  0












                  0








                  0







                  probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid



                  just to debug this issue set permissions 644/755



                  and is .htaccess available?






                  share|improve this answer













                  probably as you have set permissions 640, either admin or www-data is not in the game. you have to make sure that your apache web server is actually has some admin or www-data in its uid/gid



                  just to debug this issue set permissions 644/755



                  and is .htaccess available?







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 4 '15 at 23:26









                  MagenXMagenX

                  2,0781024




                  2,0781024





















                      0














                      Please set default permission for Magento 2 root directory by running following command:



                      sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento


                      I hope it works for you.






                      share|improve this answer





























                        0














                        Please set default permission for Magento 2 root directory by running following command:



                        sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento


                        I hope it works for you.






                        share|improve this answer



























                          0












                          0








                          0







                          Please set default permission for Magento 2 root directory by running following command:



                          sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento


                          I hope it works for you.






                          share|improve this answer















                          Please set default permission for Magento 2 root directory by running following command:



                          sudo find . -type d -exec chmod 770 ; && sudo find . -type f -exec chmod 660 ; && sudo chmod u+x bin/magento


                          I hope it works for you.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 2 days ago

























                          answered 2 days ago









                          Kamlesh YaduwanshiKamlesh Yaduwanshi

                          213




                          213



























                              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%2f92681%2finstall-issue-permission-and-htaccess%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

                              Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                              Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

                              Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?