Moving File to different Folder

Moving File to different Folder

George Schulp -
回帖数:5

1.9.10 Moodle - - I wish to move my files to a different folder -I contacted my Host and there response is below - Can anyone tell me how to redirect everything so it will continue to work

<<Once you move the files from one folder to another, the installation path will be broken. You need to re-update the directory path in the config file. Hence, I suggest that you refer Moodle help/forum link to find out what all settings needs to be changed when files are moved.

If you have any further questions, please update the Support Console.

Sincerely,

Herman Ray
Technical Specialist

回复George Schulp

Re: Moving File to different Folder

Ken Task -
Particularly helpful Moodlers的头像

Question cause not really clear ... do you desire to move files from a course ID folder to another course ID folder?  or do you desire to move all moodledata to a new moodledata folder?

'spirit of sharing', Ken

回复Ken Task

Re: Moving File to different Folder

George Schulp -

I attempted to change the folder name due to that group not being active anymore and I was not able to access the moodle course files.  So I developed another file with a different name and moved the file there and once again - I could not access the course - - to see go to http://emscon-ed.com/SUPERIOR/  the file "SUPERIOR" I need to change to another name and still access the program - -does that help??

回复George Schulp

Re: Moving File to different Folder

Matt Lanning -

If I'm understanding your post correctly, you would like to move your entire Moodle installation from http://emscon-ed.com/SUPERIOR/ to http://emscon-ed.com/SomeNewName.

If that is the case, you should copy all of the contents of the SUPERIOR directory to the SomeNewName directory.  Make sure that you copy everything in the directory, rather than move it so you still have a backup available.  Next, you need to modify the config.php file in the SomeNewName directory.  Towards the top you should see a line that looks like this:

$CFG->wwwroot   = 'http://emscon-ed.com/SUPERIOR/';


This tells Moodle where your Moodle installation is running.  You need to edit that line to look something like this:

$CFG->wwwroot   = 'http://emscon-ed.com/SomeNewName/';

Hopefully everything will then work properly.

回复Matt Lanning

Re: Moving File to different Folder

George Schulp -

That is exactally what I want to do - I will try that tomorrow!!  Thank You - I'll let you know how it works

回复George Schulp

Re: Moving File to different Folder

Ken Task -
Particularly helpful Moodlers的头像

Just one more thing to do besides changing the config.php file ... search and replace for 'http://site/oldfolder/' replace with 'http://site/newfolder/'

Hopefully, in version 1.9.10, there exist a 'replace.php' file in /newfolder/admin/.  There is no admin link for the search and replace utility.  One has to login as an admin user and then use the URL line of the browser going to:

http://site/newfolder/admin/replace.php

In version 2 of Moodle, there is (I think) a link under tools.

'spirit of sharing', Ken