Installation help

Upload Moodle2.5+ to FTP

 
 
Sketch...
Re: Upload Moodle2.5+ to FTP
Group Particularly helpful Moodlers

Yes, change $CFG->dbhost to point to the name of the computer/server where your Moodle database is running.

Same applies to $CFG->wwwroot. It must point to the name of the computer that Moodle is running on.

$CFG->dataroot must be OUTSIDE of your web path. In other words, it must not be accessible over the web. If you can access http://mydomain/X_Server/htdocs/moodledata via your web browser then you're putting your site at risk.

 
Average of ratings: -
Picture of Saha Abu Bakar
Re: Upload Moodle2.5+ to FTP
 

Now I got the error shows 'You don't have permission to access /eHalal/X_Server/ on this server.'

 

Here is config.php code:


$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = '**saha**';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 0,
);

$CFG->wwwroot = 'http:/unilab.com/eLearn/X_Server';
$CFG->dataroot = 'http::\\C:\X_Server\\htdocs\\moodledata';
$CFG->admin = 'admin';

$CFG->directorypermissions = 0777;

What other steps do I need to do?

 
Average of ratings: -
Picture of Saha Abu Bakar
Re: Upload Moodle2.5+ to FTP
 

Sorry some mistake previous post.

Now I got the error shows 'You don't have permission to access /eLearn/X_Server/ on this server.'

 

Here is config.php code:


$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = '**saha**';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 0,
);

$CFG->wwwroot = 'http:/unilab.com/eLearn/X_Server';
$CFG->dataroot = 'http::\\C:\X_Server\\htdocs\\moodledata';
$CFG->admin = 'admin';

$CFG->directorypermissions = 0777;

What other steps do I need to do?

 
Average of ratings: -
Picture of John Andrewartha
Re: Upload Moodle2.5+ to FTP
 

$CFG->dataroot = 'http::\\C:\X_Server\\htdocs\\moodledata';

This should be a absolute path not virtual, loose the http

 
Average of ratings: -
Picture of Saha Abu Bakar
Re: Upload Moodle2.5+ to FTP
 

Hi John

I have loose the http so now it is :

$CFG->dataroot = 'C:\X_Server\\htdocs\\moodledata';

when i type on my browser http://unilab.com/eLearn/X_Server/htdocs/Moodle/install.php

the browser change

http://unolabs.com/eHalal/X_Server/htdocs/Moodle/admin/index.php?lang=en

same error appears 'Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.'

What do I do next? Thank you for guiding me.

 
Average of ratings: -
Picture of John Andrewartha
Re: Upload Moodle2.5+ to FTP
 

You now you need to make sure the dataroot directory is

a. Owned by the process running the web server

or

b. allow global (everyone/body) write access

Go with (a) it is the more secure way.  That should fix it.

If you are unsure on how to change MS permissions I can't help there, Google will be your friend.

 
Average of ratings: -
Head
Re: Upload Moodle2.5+ to FTP
Group Particularly helpful MoodlersGroup Testers

Hi Saha,

A few questions:

1. Which Moodle files are you trying to upload? Was it the standard Moodle Package?

2. On your server where you have FTPed the files to, does the folder "C:\X_Server\htdocs\moodledata" exisit?

3. What is the local path for your Moodle files on the server? Is it "C:\X_Server\htdocs\moodle"?

If you can answer these questions I may be able to help you a little bit more.

Jon

 
Average of ratings: -
Picture of Saha Abu Bakar
Re: Upload Moodle2.5+ to FTP
 

Hi Jon

1- Moodle latest 2.5

2- Yes Moodledata exists

3-  See the attached

 

Let em know if u need more info. Thank you.

 
Average of ratings: -
Picture of Saha Abu Bakar
Re: Upload Moodle2.5+ to FTP
 

When I type on the browser 'http://unolabs.com/eHalal'

error msg appears 'You don't have permission to access /eHalal/ on this server.'

Been changing wwwroot and dataroot with no success.

$CFG = new stdClass();

$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = '**saha**';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 0,
);

$CFG->wwwroot = 'http:/unolabs.com/eHalal';
$CFG->dataroot = 'C:\unolabs.com\eHalal\X_Server\\htdocs\\moodle';
$CFG->admin = 'admin';

$CFG->directorypermissions = 0777;

 

When I type in the browser 'http://unolabs.com/eHalal/X_Server/htdocs/index.html'

The msg appears 'It works!'

 Help please....Thank you

 
Average of ratings: -