Cant access setup(or any files) of magento2 in browser












2















Installed lamp on centos 7.
Moved files to /var/www/html/



When I chmod 655 magento directory I can see apache welcome screen, but when i try IP_addr/index.php gives:




"You don't have permission to access /index.php on this server."




When I chmod 755 magento directory I can see only 500 error.



When I follow magento permision setting I can see only 500 error.










share|improve this question





























    2















    Installed lamp on centos 7.
    Moved files to /var/www/html/



    When I chmod 655 magento directory I can see apache welcome screen, but when i try IP_addr/index.php gives:




    "You don't have permission to access /index.php on this server."




    When I chmod 755 magento directory I can see only 500 error.



    When I follow magento permision setting I can see only 500 error.










    share|improve this question



























      2












      2








      2








      Installed lamp on centos 7.
      Moved files to /var/www/html/



      When I chmod 655 magento directory I can see apache welcome screen, but when i try IP_addr/index.php gives:




      "You don't have permission to access /index.php on this server."




      When I chmod 755 magento directory I can see only 500 error.



      When I follow magento permision setting I can see only 500 error.










      share|improve this question
















      Installed lamp on centos 7.
      Moved files to /var/www/html/



      When I chmod 655 magento directory I can see apache welcome screen, but when i try IP_addr/index.php gives:




      "You don't have permission to access /index.php on this server."




      When I chmod 755 magento directory I can see only 500 error.



      When I follow magento permision setting I can see only 500 error.







      magento2 error permissions






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 59 mins ago









      Shoaib Munir

      1,081521




      1,081521










      asked Dec 13 '18 at 14:58









      Mr. KovalskiMr. Kovalski

      111




      111






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Try to make the Magento file system owner, owner of the install dir - chown -R : .






          share|improve this answer
























          • Isn't file system owner also automaticaly owner of install dir, or have i mixed it up? I created user called magento as owner of /var/www/html

            – Mr. Kovalski
            Dec 13 '18 at 15:19











          • Follow the instructions on this page devdocs.magento.com/guides/v2.0/install-gde/prereq/…

            – kolek
            Dec 13 '18 at 15:21











          • I followed those instructioins. But perhaps I am confused whot is magento file system owner, since i am new to this. Is it root or the one I asigned to apache dir with chown.

            – Mr. Kovalski
            Dec 13 '18 at 15:27











          • Basically you need to create new user and add it to the web server role then execute EVERY magento related command with that user

            – kolek
            Dec 13 '18 at 15:39











          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%2f253559%2fcant-access-setupor-any-files-of-magento2-in-browser%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Try to make the Magento file system owner, owner of the install dir - chown -R : .






          share|improve this answer
























          • Isn't file system owner also automaticaly owner of install dir, or have i mixed it up? I created user called magento as owner of /var/www/html

            – Mr. Kovalski
            Dec 13 '18 at 15:19











          • Follow the instructions on this page devdocs.magento.com/guides/v2.0/install-gde/prereq/…

            – kolek
            Dec 13 '18 at 15:21











          • I followed those instructioins. But perhaps I am confused whot is magento file system owner, since i am new to this. Is it root or the one I asigned to apache dir with chown.

            – Mr. Kovalski
            Dec 13 '18 at 15:27











          • Basically you need to create new user and add it to the web server role then execute EVERY magento related command with that user

            – kolek
            Dec 13 '18 at 15:39
















          0














          Try to make the Magento file system owner, owner of the install dir - chown -R : .






          share|improve this answer
























          • Isn't file system owner also automaticaly owner of install dir, or have i mixed it up? I created user called magento as owner of /var/www/html

            – Mr. Kovalski
            Dec 13 '18 at 15:19











          • Follow the instructions on this page devdocs.magento.com/guides/v2.0/install-gde/prereq/…

            – kolek
            Dec 13 '18 at 15:21











          • I followed those instructioins. But perhaps I am confused whot is magento file system owner, since i am new to this. Is it root or the one I asigned to apache dir with chown.

            – Mr. Kovalski
            Dec 13 '18 at 15:27











          • Basically you need to create new user and add it to the web server role then execute EVERY magento related command with that user

            – kolek
            Dec 13 '18 at 15:39














          0












          0








          0







          Try to make the Magento file system owner, owner of the install dir - chown -R : .






          share|improve this answer













          Try to make the Magento file system owner, owner of the install dir - chown -R : .







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 13 '18 at 15:10









          kolekkolek

          161




          161













          • Isn't file system owner also automaticaly owner of install dir, or have i mixed it up? I created user called magento as owner of /var/www/html

            – Mr. Kovalski
            Dec 13 '18 at 15:19











          • Follow the instructions on this page devdocs.magento.com/guides/v2.0/install-gde/prereq/…

            – kolek
            Dec 13 '18 at 15:21











          • I followed those instructioins. But perhaps I am confused whot is magento file system owner, since i am new to this. Is it root or the one I asigned to apache dir with chown.

            – Mr. Kovalski
            Dec 13 '18 at 15:27











          • Basically you need to create new user and add it to the web server role then execute EVERY magento related command with that user

            – kolek
            Dec 13 '18 at 15:39



















          • Isn't file system owner also automaticaly owner of install dir, or have i mixed it up? I created user called magento as owner of /var/www/html

            – Mr. Kovalski
            Dec 13 '18 at 15:19











          • Follow the instructions on this page devdocs.magento.com/guides/v2.0/install-gde/prereq/…

            – kolek
            Dec 13 '18 at 15:21











          • I followed those instructioins. But perhaps I am confused whot is magento file system owner, since i am new to this. Is it root or the one I asigned to apache dir with chown.

            – Mr. Kovalski
            Dec 13 '18 at 15:27











          • Basically you need to create new user and add it to the web server role then execute EVERY magento related command with that user

            – kolek
            Dec 13 '18 at 15:39

















          Isn't file system owner also automaticaly owner of install dir, or have i mixed it up? I created user called magento as owner of /var/www/html

          – Mr. Kovalski
          Dec 13 '18 at 15:19





          Isn't file system owner also automaticaly owner of install dir, or have i mixed it up? I created user called magento as owner of /var/www/html

          – Mr. Kovalski
          Dec 13 '18 at 15:19













          Follow the instructions on this page devdocs.magento.com/guides/v2.0/install-gde/prereq/…

          – kolek
          Dec 13 '18 at 15:21





          Follow the instructions on this page devdocs.magento.com/guides/v2.0/install-gde/prereq/…

          – kolek
          Dec 13 '18 at 15:21













          I followed those instructioins. But perhaps I am confused whot is magento file system owner, since i am new to this. Is it root or the one I asigned to apache dir with chown.

          – Mr. Kovalski
          Dec 13 '18 at 15:27





          I followed those instructioins. But perhaps I am confused whot is magento file system owner, since i am new to this. Is it root or the one I asigned to apache dir with chown.

          – Mr. Kovalski
          Dec 13 '18 at 15:27













          Basically you need to create new user and add it to the web server role then execute EVERY magento related command with that user

          – kolek
          Dec 13 '18 at 15:39





          Basically you need to create new user and add it to the web server role then execute EVERY magento related command with that user

          – kolek
          Dec 13 '18 at 15:39


















          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%2f253559%2fcant-access-setupor-any-files-of-magento2-in-browser%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

          What other Star Trek series did the main TNG cast show up in?

          Berlina muro

          Berlina aerponto