Jump to content

Recommended Posts

Posted

I need to move Moodle and MoodleData on Ubuntu (just to keep storage on main OS down)

 

I have a 2nd drive attached and its mounted. When i did a try and move it and link it back to the original folder it broke.

 

Which files do i need to change to point to the new drive / location?

Posted

Hi

 

You probably don't need to do any linking (I take it you mean symlinks).

 

In the config.php just change the filepath to the moodle data folder to the new location.

 

For the moodle folder itself change the apache config for the site to also point at the new file location and restart apache.

  • Thanks 1
Posted

Thanks. I’ll try that tomorrow.

 

I got moodledata moved. I had a problem with the drive mount path which I renamed and it works.

 

Just would like to move the var/www/html (which has moodle html in)

Posted

I'd be surprised if your html folder is of any real size so you probably won't gain a huge ammount of space.

However, if have your moodle set up with vhosts then edit /etc/apaches2/site-avaiable/sitename.conf

 

Find the line 'DocumentRoot' and point this to the new folder location

 

If you don't have a vhost (And you really should) then you shuld edit /etc/apache2/sites-available/000-defualt.conf and change the DocumentRoot there.

Posted

You can move that easily as well, assuming you are using named virtual hosts, then you can change the path the website points to in there. if you are worried, copy the files to the new location, do something simple to it, like hardcode a title in it.

 

Then change the config file, restarted the httpd service and refresh the moodle page, you should on your "new" version with the title you put in to make it really easy to see the difference. Just make sure where ever you move it to, that the permissions are correct.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...