We tried to install Moodle version 1.9 on php 5.2, IIS 5.1, MSSQL (v. 9) Windows XP.
And we have Dotnet Framework 1 and 2 installed in our system.
We followed all the installation steps in the following links
http://docs.moodle.org/en/Installing_MSSQL_for_PHP
http://www.peterguy.com/php/install_IIS6.html
http://docs.moodle.org/en/Windows_installation
We have included necessary “dll” files in PHP/ext and added the extension in php.ini.
The Config.php file was created without errors. After that the database was created successfully with out any errors. Immediately we were taken to the login page with User name displaying “admin” and displaying the following error.
“Your session has timed out. Please login again"
We have enabled cookies and checked out this with both IE 6 and Mozill Firefox browser. The cookies are created.
We didn’t provided any details for creating admin user.
When we checked the database table “mdl_user” , it has two users (admin & guest).But we didn’t see the admin account creation page.
Once we tried to login with guest it displayed the following error.
“A server error that affects your login session was detected. Please login or restart your browser.”
Initially we set the session.save_path =”c:\moodle\moodledata” and had given the full rights to that folder.We could able to see the session files created in this folder.
And we could see the moodledata folder in several subfolders of moodle directory.
e.g moodle/admin/moodledata, moodle/login/moodledata (We didn’t checked entire moodle directory for how many moodledata folder created in installation).
When ever we open the moodle website new session files were created in the moodle data folder and displaying the same error
“A server error that affects your login session was detected. Please login or restart your browser.”
Finally we have changed the session.save_path =”c:\temp” in php.ini and restarted IIS, deleted config.php, deleted cookies and deleted old database.
Once again everything I went as same as above. But now we could able to see that only one session file is created in “C:\temp” and the same session is created in moodledata folder.
When we tried to login again and again new session files were created only in moodledata folder but not in “C:\temp”.
there is one entry was made in mdl_log table in the database. Even when we tried to login as Guest user. It displays the error immediately “Your session has timed out. Please login again" and make no entries in the mdl_log table.
We think this might be problem for session maintenance using PHP in IIS. We would be much thankful to those who help us to solve this error.
Thanks & regards,