How to clone a moodle

How to clone a moodle

by Ripa Desai -
Number of replies: 14

Hello,

I am a newbie. We are planning to upgrade our moodle from 2.9+ to 3.2.

So I am trying to prepare a test environment for our moodle. I have copied moodledata,/var/www folder and moodle database to my new machine successfully. However, when I am trying to access that page using ipaddress/moodle. I am getting a message that unable to connect.

Would you please help me out to solve this issue.

$CFG->wwwroot='http://xxx.xx.x.x/moodle';

$CFG->dirroot='/var/www';

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

$CFG->admin='admin';



Average of ratings: -
In reply to Ripa Desai

Re: How to clone a moodle

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Please give us the full message...unable to connect to what?  Server/Site/Database?

In reply to Emma Richardson

Re: How to clone a moodle

by Ripa Desai -
ipaddress/moodle

Hello,


I am attaching a screenshot of message that I am getting. Please take a look..screenshot

In reply to Ripa Desai

Re: How to clone a moodle

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Do you have your webserver running on the new server?  What do you get if you just go to the ip?

In reply to Emma Richardson

Re: How to clone a moodle

by Ripa Desai -

Hello,


Now I can access apache2 by changing my ip address 192.168.1.6 to 192.168.1.5/html...

ipaddress/html


Now when I tried to access moodle by using following code

I am getting following error message. I am attaching screenshot for that

code

browser

In reply to Ripa Desai

Re: How to clone a moodle

by Ripa Desai -

When I tried to access moodle through 192.168.1.5

I am getting following screen:


index

In reply to Ripa Desai

Re: How to clone a moodle

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Move your moodle folder inside your html folder.  Make sure ownership and permissions are correct.

In reply to Emma Richardson

Re: How to clone a moodle

by Ripa Desai -

It is inside my html folder and I have all the permissions.


Thanks

In reply to Ripa Desai

Re: How to clone a moodle

by Ripa Desai -

I am getting new error now:

db error

In reply to Ripa Desai

Re: How to clone a moodle

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ok, so now you are getting to moodle so that part is correct.  Now you need to make sure that the database is up and running and accessible with the same credentials as are listed in the config file.

In reply to Ripa Desai

Re: How to clone a moodle

by Rahul Rai -

Hi Ripa

I am also face this type of problem. But i fix it.

database problem


because in server database not start or not properly start in my case.

how to start check in image.

server

In reply to Rahul Rai

Re: How to clone a moodle

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Unless I missed something, the OP is not running Xampp. They are running on Ubuntu. 

This won't help them unfortunately. 

In reply to Ripa Desai

Re: How to clone a moodle

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Try
192.168.1.15/html/moodle
In reply to Marcus Green

Re: Moodle in English: Re: How to clone a moodle

by Ripa Desai -
I tried. It doesnt work



On Wed, May 3, 2017 at 4:43 PM, Marcus Green (via Moodle.org) <
In reply to Ripa Desai

Re: How to clone a moodle

by Ken Task -
Picture of Particularly helpful Moodlers

Op is running Ubuntu 16.04 which is Linux Standards Base (LSB) - there are changes to the way Ubuntu sets up apache.  If Op; had experience with Ubuntu earlier versions, things have changed.

Please see:

https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-16-04

The section on Server Configuration and especially read about 'sites-available' and 'sites-enabled' in that section.

One shouldn't see a 'html' directory listing unless Op has changed default config.   That directory should be 'document root'.   IF anything, Op should have seen a 'moodle' directory.

Suggest, if Op has made any changes to conf files for apache, revert them back and read about sites-available/sites-enabled.

'spirit of sharing', Ken