Moodle installation dataroot directory problem












0















I am trying to install moodle and I need to put moodledata on server A and install moodle on other server B



I did a directory named dataroot on server A and installed virtual host to be accessed through http://A.A.A.A/moodledata and I accesses it through google chrome and gave permissions to apache to read/write on it



I stared installing moodle on Server B but when I asked to put the dataroot directory, I put it http://A.A.A.A/moodledata but I received an error message Data directory (http://A.A.A.A/moodledata ) cannot be created by the installer



I changed the dataroot directory by deleting http so that it is now A.A.A.A/moodledata and it is accepted but when I finished I received an error $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.



and when I trying to install moodle again, I receive the same error without allowing me to complete the installation



What do you suggest?



I am trying to install Moodle 3.5.3 on centos7



Thanks and best regards










share|improve this question



























    0















    I am trying to install moodle and I need to put moodledata on server A and install moodle on other server B



    I did a directory named dataroot on server A and installed virtual host to be accessed through http://A.A.A.A/moodledata and I accesses it through google chrome and gave permissions to apache to read/write on it



    I stared installing moodle on Server B but when I asked to put the dataroot directory, I put it http://A.A.A.A/moodledata but I received an error message Data directory (http://A.A.A.A/moodledata ) cannot be created by the installer



    I changed the dataroot directory by deleting http so that it is now A.A.A.A/moodledata and it is accepted but when I finished I received an error $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.



    and when I trying to install moodle again, I receive the same error without allowing me to complete the installation



    What do you suggest?



    I am trying to install Moodle 3.5.3 on centos7



    Thanks and best regards










    share|improve this question

























      0












      0








      0








      I am trying to install moodle and I need to put moodledata on server A and install moodle on other server B



      I did a directory named dataroot on server A and installed virtual host to be accessed through http://A.A.A.A/moodledata and I accesses it through google chrome and gave permissions to apache to read/write on it



      I stared installing moodle on Server B but when I asked to put the dataroot directory, I put it http://A.A.A.A/moodledata but I received an error message Data directory (http://A.A.A.A/moodledata ) cannot be created by the installer



      I changed the dataroot directory by deleting http so that it is now A.A.A.A/moodledata and it is accepted but when I finished I received an error $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.



      and when I trying to install moodle again, I receive the same error without allowing me to complete the installation



      What do you suggest?



      I am trying to install Moodle 3.5.3 on centos7



      Thanks and best regards










      share|improve this question














      I am trying to install moodle and I need to put moodledata on server A and install moodle on other server B



      I did a directory named dataroot on server A and installed virtual host to be accessed through http://A.A.A.A/moodledata and I accesses it through google chrome and gave permissions to apache to read/write on it



      I stared installing moodle on Server B but when I asked to put the dataroot directory, I put it http://A.A.A.A/moodledata but I received an error message Data directory (http://A.A.A.A/moodledata ) cannot be created by the installer



      I changed the dataroot directory by deleting http so that it is now A.A.A.A/moodledata and it is accepted but when I finished I received an error $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.



      and when I trying to install moodle again, I receive the same error without allowing me to complete the installation



      What do you suggest?



      I am trying to install Moodle 3.5.3 on centos7



      Thanks and best regards







      configuration installation moodle






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 7:21









      user3270870user3270870

      3114




      3114
























          2 Answers
          2






          active

          oldest

          votes


















          0














          The dataroot directory on your server should be somewhere that is not accessible from the internet and you should specify the path, not the URL of the directory.



          e.g. if the code for your site was on your server at:



          /var/www/moodle



          And your dataroot directory was



          /var/moodledata



          Then you should write:



          $CFG->dataroot = '/var/moodledata';






          share|improve this answer































            0














            Moodle expects the dataroot to be a local directory, preferably outside of the web root.



            You could create an NFS share on Server A and mount it on Server B, that way dataroot will appear to Moodle like it is a local folder.






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              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: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              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%2fstackoverflow.com%2fquestions%2f53425733%2fmoodle-installation-dataroot-directory-problem%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














              The dataroot directory on your server should be somewhere that is not accessible from the internet and you should specify the path, not the URL of the directory.



              e.g. if the code for your site was on your server at:



              /var/www/moodle



              And your dataroot directory was



              /var/moodledata



              Then you should write:



              $CFG->dataroot = '/var/moodledata';






              share|improve this answer




























                0














                The dataroot directory on your server should be somewhere that is not accessible from the internet and you should specify the path, not the URL of the directory.



                e.g. if the code for your site was on your server at:



                /var/www/moodle



                And your dataroot directory was



                /var/moodledata



                Then you should write:



                $CFG->dataroot = '/var/moodledata';






                share|improve this answer


























                  0












                  0








                  0







                  The dataroot directory on your server should be somewhere that is not accessible from the internet and you should specify the path, not the URL of the directory.



                  e.g. if the code for your site was on your server at:



                  /var/www/moodle



                  And your dataroot directory was



                  /var/moodledata



                  Then you should write:



                  $CFG->dataroot = '/var/moodledata';






                  share|improve this answer













                  The dataroot directory on your server should be somewhere that is not accessible from the internet and you should specify the path, not the URL of the directory.



                  e.g. if the code for your site was on your server at:



                  /var/www/moodle



                  And your dataroot directory was



                  /var/moodledata



                  Then you should write:



                  $CFG->dataroot = '/var/moodledata';







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 22 '18 at 13:48









                  davosmithdavosmith

                  3,8342918




                  3,8342918

























                      0














                      Moodle expects the dataroot to be a local directory, preferably outside of the web root.



                      You could create an NFS share on Server A and mount it on Server B, that way dataroot will appear to Moodle like it is a local folder.






                      share|improve this answer




























                        0














                        Moodle expects the dataroot to be a local directory, preferably outside of the web root.



                        You could create an NFS share on Server A and mount it on Server B, that way dataroot will appear to Moodle like it is a local folder.






                        share|improve this answer


























                          0












                          0








                          0







                          Moodle expects the dataroot to be a local directory, preferably outside of the web root.



                          You could create an NFS share on Server A and mount it on Server B, that way dataroot will appear to Moodle like it is a local folder.






                          share|improve this answer













                          Moodle expects the dataroot to be a local directory, preferably outside of the web root.



                          You could create an NFS share on Server A and mount it on Server B, that way dataroot will appear to Moodle like it is a local folder.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Dec 6 '18 at 15:28









                          Dale DaviesDale Davies

                          418




                          418






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • 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%2fstackoverflow.com%2fquestions%2f53425733%2fmoodle-installation-dataroot-directory-problem%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

                              If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                              Alcedinidae

                              Can an atomic nucleus contain both particles and antiparticles? [duplicate]