How to clone a moodle

How to clone a moodle

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';



評比平均分數: -
In reply to Ripa Desai

Re: How to clone a moodle

Emma Richardson發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 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

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

Emma Richardson發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 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

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

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

Emma Richardson發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 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

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

Ripa Desai發表於

I am getting new error now:

db error

In reply to Ripa Desai

Re: How to clone a moodle

Emma Richardson發表於
Documentation writers的相片 Particularly helpful Moodlers的相片 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

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

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 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

Ken Task發表於
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