Partner and Community Forums
moodle fastcgi internet explorer error 500
Last post Aug 25, 2020 06:59 PM by olivedev
Jan 12, 2008 08:11 AM|Pablo A Castillo|LINK
I have the same issue, I only copy the text reference:
In testing the FastCGI for IIS component with
PHP and moving away from ISAPI PHP implementation we have managed to develop a small problem with moodle login form, and I was wondering if anyone might have any idea what is causing this, or has encountered it in the past.
We are currently using front end moodle
server with Windows 2003 Server/IIS6 and PHP 5.2.3.
Our moodle back end server is Windows 2003 with
MySQL 5.0.45 running on. PHP has been implemented in ISAPI mode, and everything running ok, but not very quickly (As an experiment we have changed over from ISAPI PHP to FastCGI for IIS.
The speed increase is very noticeable, and moodle works fine, apart from a login issue.
When a user puts in an incorrect password on the moodle login screen IE6 gives a HTTP 500 internal server error message and
Firefox 2 reports the following single text line (IP and hostname removed) for any user,
Failed Login: admin Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:184.108.40.206) Gecko/20070725 Firefox/220.127.116.11
Instead of reporting back to the moodle login page with “invalid password” appearing like normal (as happens when running in ISAPI mode)
What seems to be happening is the PHP error is not being sent back to the login.php to display correctly, and just appearing in the browser, but unfortunately I don’t have any idea why this would happen,
Is anyone able to help and shed some light on this for me please?
Jan 18, 2008 10:20 AM|Pablo A Castillo|LINK
Any one have ideas about this?
I can send $$$ for this solution (via paypal, western union) Is urgent for me!!
Jan 23, 2008 04:27 PM|PolyPill|LINK
Comment out line 4766 (at least is that line in moodle 1.7.4)
For some stupid reason moodle sends a 303 response before a location redirect, comment that line out and everything will work fine.
Jan 26, 2008 05:13 PM|Pablo A Castillo|LINK
hello friend, thanks for your reply.
I have moodle 1.8 and comment the line 5310
$delay = 0;
//try header redirection first
//@header($_SERVER['SERVER_PROTOCOL'] . ' 303 See Other');
//302 might not work for POST requests, 303 is ignored by obsolete clients
//another way for older browsers and already sent headers (eg trailing whitespace in config.php)
echo '<meta http-equiv="refresh" content="'. $delay .'; url='. $encodedurl .'" />';
this dont work :( I dont know if downgrade to 1.7.4. Microsoft guys dont have solution to this using FastCGI.
Jan 26, 2008 08:48 PM|Pablo A Castillo|LINK
this is the code
the problem is exactly related by PolyPill guy, moodle sends a 303 response before a location redirect but I am unable to handle this.
Jan 27, 2008 02:37 PM|PolyPill|LINK
I took a look at moodle 1.8 since we'll eventually have to upgrade to it.
Basically any header() that outputs anything the fastcgi handler doesn't understand causes it to crash, it should really just ignore things instead, but on the weblib.php comment out line 4944. "@header('HTTP/1.0 404 Not Found');"
There might be more lines like that, I'll look more and see what I come up with.
Jan 27, 2008 02:48 PM|PolyPill|LINK
lib/filelib.php line 656 @header('HTTP/1.1 206 Partial content');
lib/filelib.php line 678 @header('HTTP/1.1 206 Partial content');
Aug 25, 2020 06:59 PM|olivedev|LINK
Have you checked the possibility that maybe you are installing in the wrong directory path? I faced this same issue on a LAMP based Moodle hosting (https://www.cloudways.com/en/moodle-hosting.php ).
They told me i am supposed to install Moodle in public_html directory.