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

                              Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

                              Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form