Copying a Moodle Instance to another directory

Copying a Moodle Instance to another directory

by Kate Douma -
Number of replies: 1
I need to create a new test moodle site from the existing production site.

I created a new directory www.exampleurl.com/training-sample

and copied the contents of www.exampleurl.com/moodle-production
into www.exampleurl.com/training-sample/

I then created a new mysql database, backed up the production database, and then restored it to the new mysql database.

I then followed the moodle instructions for migrating moodle and changed the config.php file to point at the new directory.

When I try to access moodle I get the following error:


Warning: main(/course/lib.php): failed to open stream: No such file or directory in /home/content/e/m/p/empo363/html/training-sample/index.php on line 34

Fatal error: main(): Failed opening required '/course/lib.php' (include_path='.:/usr/local/lib/php') in /home/content/e/m/p/empo363/html/training-sample/index.php on line 34

Any ideas?

Thanks
Average of ratings: -
In reply to Kate Douma

Re: Copying a Moodle Instance to another directory

by Jeff Snyder -

I would try to copy the directories once more, and reset iis. Also try copying the ****data/ folder as well and edit config.php again to reflect.

Should be working fine, which is what makes me think not every file got copied.

-- Jeff Snyder