I recently did a reinstall of moodle and have been introducing the software to my students since that time. They have all logged on and created their own accounts so I wanted to take them to the next step this weekend and have them enroll in classes. I have found, however, that by going to this address: http://www.mydomainname.org/login/index.php the students are directed to the default webpage of my domain after logging in. After I log out of the admin account (I access the admin account through another avenue) I am also directed to my home page.
What is going on? HELP!
Is Moodle installed in the root of your domain? Is http://www.mydomainname.org the Moodle login page?
Yes, there is no www.mydomain.com/moodle/login It is taking me to my domain's webpage - not the moodle homepage. Sorry for not being so clear.
I'm a little confused. Where should they be redirected? After logging in users are usually redirected to the homepage of the moodle installation. So, if your moodle is installed at http://www.mydomainname.org/, everything seems fine.
If something is wrong, though, try checking the $CFG->wwwroot value in config.php.
If something is wrong, though, try checking the $CFG->wwwroot value in config.php.
In reply to Przemyslaw Stencel
Re: Login taking me to my domain's home page??!!!
by Lindley Bailey -
Have you set up apache correctly to recognize it has a new web site installed on it? It sounds like only your homepage is registered as a website. You need to add moodle.
I got the following from the Ubuntu site on installing apache, but you'll need tp reaad the stuff before it to really make the changes:
Now, we must deactivate the old site, and activate our new one. Ubuntu provides two small utilities that take care of this: a2ensite (apache2enable site) and a2dissite (apache2disable site).
I got the following from the Ubuntu site on installing apache, but you'll need tp reaad the stuff before it to really make the changes:
Now, we must deactivate the old site, and activate our new one. Ubuntu provides two small utilities that take care of this: a2ensite (apache2enable site) and a2dissite (apache2disable site).
sudo a2dissite default && sudo a2ensite mysite
Finally, we restart Apache2:
sudo /etc/init.d/apache2 restart From https://help.ubuntu.com/community/ApacheMySQLPHP Hope this helps, Lin Bailey
Ohhhhhh I am still not sure. As soon as people log into moodle they are taken to my webpage, that has pictures of my travels, etc. How do they get into moodle to use the program? Once they log in, all they see are my pictures of China. How do they get to the point where they can choose a class, read my news, etc? I think the first time moodle was set up it was set up in its own domain, and I never had this problem.
Sorry....moodle had its own subdomain www.mydomain/moodle/xxxxxxx
I got it!