How to transfer moodle from www.abc.com/moodle to www.abc.com

How to transfer moodle from www.abc.com/moodle to www.abc.com

vikas deoarshi -
回帖数:7
hi frnds . I have followed manual on the moodle site to install moodle . But i have installed ii in www.abc.com/moodle but i want something like www.abc.com . How to do it . do i have to reinstall moodle . Plz help
回复vikas deoarshi

Re: How to transfer moodle from www.abc.com/moodle to www.abc.com

Radik Kalakay -
Hello,
simply move all files to root of "www.abc.com" and edit configuration file - config.php (change $CFG->wwwroot, $CFG->dirroot, $CFG->dataroot if needed)
Rado

回复vikas deoarshi

本讨论区帖子已移除

本讨论区帖子的内容已移除,无法再访问。
回复vikas deoarshi

Re: How to transfer moodle from www.abc.com/moodle to www.abc.com

paul rayner -

why not just use a redirect and leave files where they are?

Create an index file - that only contains the following:

<meta http-equiv="refresh" content="0;url=http://www.abc.com/moodle" />


Good luck

basil


回复vikas deoarshi

Re: How to transfer moodle from www.abc.com/moodle to www.abc.com

Manish Verma -
Besides the redirection and files migration methods there is a method that is used by moodle.org as well I believe, which is to make some simple changes in apache configuration. I remember seeing Martin's post about it in another thread and you should hopefully be able to find it using forum search.
回复Manish Verma

Re: How to transfer moodle from www.abc.com/moodle to www.abc.com

Richard Enison -
VD, MV, and whoever else is interested,

That's the method I was going to suggest. I don't know about Martin's post, or whether you (MV) meant Martin L. or Martin D., all I know is
  1. If you (VD) are using Apache, and
  2. you are using your own server so you have access to httpd.conf, then
  3. all you have to do is change the DocumentRoot directive to point to the moodle directory (folder) instead of its parent. That, of course, requires a corresponding change to wwwroot and dirroot in config.php as RK mentioned, as well as the replace.php utility AH mentioned.
RLE

EDIT: P.S. abc.com is the Internet domain of the major, major, major radio and TV network ABC, so unless you are with them, that's not a good example domain. smile