Create a Moodle image on my Localhost

0

I'm doing a business internship and it's the first time I work with moodle, so sorry if I do not formulate the question correctly. It works with a version 2.0 and I see that until I can update to 3.5 I need to update progressively because it can not be done only once. I would not like to lose information and I have already made a copy of the folders on my server but I would like to know if I can install a copy / image of my moodle on my local host, so that I can work the updates first in Local and then on the server. I hope I have been able to express it. Thanks for the help.

    
asked by Jonatan 03.10.2018 в 16:23
source

1 answer

0

If of course you have to collect the following data.

  • The moodle files you currently have
  • The files of Moodledata. The path of this you can see in the config.php file of moodle under the variable $ CFG-> dataroot.
  • Dump of the database Saved in a sql file.
  • Optional: modify all the dump strings of the database, replacing all occurrences of your current domain with the local domain that you are going to use.

Once you have all this follow these steps

  • Place the moodle directory in the webserver of your local machine. For example if you installed a lamp and you have the document root by default, put all the files in / var / www / html.
  • Place the moodledata directory on a path with read and write permissions
  • Restore the dump database to some local database
  • Modify the config.php file with the data of your local installation. You should update the path $ CFG-> dataroot and modify the data connection to the database.
  • Enter the local domain that you have configured as webserver
answered by 26.10.2018 в 00:02