Phil
127.0.0.1 is a TCP loop back test IP that all machines have. If you want other machines on the network to access your moodle server you will need to place the IP addrfess of your seerver in config.php. You can find the IP address of your server by running ipconfig from a command prompt on your server
Thanks for the response. We already went into the config.php and replaced that address with our server address. However, after attempting to login everything defaults back to http://127.0.0.1.
Have you restarted the web server (iis,apache)
Thanks for the response. Just for good measure I restarted the server and still no luck. The config.php is inside the moodle directory, correct ?
I installed the "MoodleWindowsInstaller-latest" for the last package. Its a Windows 2003 server and I basically just did the 'click' and 'next' installation. Thanks.
I would not recommend the WindowsCompleteInstaller for a server; you will get far better performance if you configure each element manually (Web server, PHP and Database) than use this installer version.
Anyway that said; the reason why your change to config.php does not appear to taking effect will be the same reason why people do not see changes to their themes taking effect in this installer version of Moodle.
Please see this doc article for the workaround: Themes_FAQ#How_can_I_see_theme_changes_when_using_the_Windows_Complete_Installer_package
Jon
Thanks for the suggestion. I did as instructed per your link, but no difference was made. Also, I thought it said the WindowsCompleteInstaller "but it is not recommended that it be used as a production site" ? Fortunately, we have no data on this server and can uninstall then reinstall if necessary.
Re: Windows server: page goes to 127.0.0.1 after login
ensure that it is not set to 'http://localhost'; or
'http://127.0.0.1'
instead, set it to either the server's name (as in DNS) or IP.
eg.
$CFG->wwwroot = 'http://192.168.x.x'; (will work internally only)
or
$CFG->wwwroot = 'http://yourdomain.com';
Re: Windows server: page goes to 127.0.0.1 after login
This is a blip of what is in the file
$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'root';
$CFG->dbpass = 'xxxxxxxxxxx';
$CFG->ddpersist = false;
$CFG->prefix = 'mdl_';
$CFG->wwwroot = 'http://192.168.x.x';
$CFG->dirroot = 'DrLetter:\Moodle\server\moodle
$CFG->dataroot = 'DrLetter:\Moodle\server\moodle/data
The problem still exists. We have restarted the server, but not sure where the problem resides. Thanks.
Re: Windows server: page goes to 127.0.0.1 after login
look for the ServerName configuration, ensure that it is set to the server IP defined in config.php
Re: Windows server: page goes to 127.0.0.1 after login
It looks like your $CFG->dataroot path is wrong. The forward slash between the moodle and data folders should be a back slash.
It should be:
$CFG->dataroot = 'DrLetter:\Moodle\server\moodle\data
not:
$CFG->dataroot = 'DrLetter:\Moodle\server\moodle/data
But having your dataroot folder in your Moodle installation path is a security risk. It makes your dataroot folder directly accessible via the web and opens you up to attack.
http://docs.moodle.org/en/Creating_Moodle_site_data_directory
http://docs.moodle.org/en/Creating_Moodle_site_data_directory/Data_directory
I'm wondering if it could be the settings in the server. I set mine as follows in httpd.conf
ServerName moodle.rewards-trc.co.uk:80
you could substitute the IP address fro the server if you are only having internal access
Phil
I'm having the same problem, after editing the config.php, it seems that the new settings is not taking effect. I'm also using the windows package of moodle.
So far, I have no luck....
Thanks
Edwin
You can try to delete the folder [tmp] under {installDir}/server, and restart XAMPP.
good luck!