Error on loading PHP pages! Please help

Hi,

I’m getting a pop-up error as “php-cgi.exe - Application Error” when i try to open any PHP page(Please see error pic attached.). Then when i click OK… it gives the error as below:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, rki@xtz.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Please help.

Thanks and Regards,
Ramki

Go and look in your server error_log file for more detail, having said that the only time I ever get these is when I somehow mess up an apache instruction, that is usually when I am fiddling with my .htaccess file.

If you have been doing that, it might be worth renaming any .htaccess file in that folder you are attempting to access as a temporary measure.

Hi Cups,
thanks for your reply.
I searched for the error.log file and found the following it is showing.

[Mon Dec 06 16:35:29 2010] [error] [client 127.0.0.1] Premature end of script headers: php-cgi.exe, referer: http://localhost/audiovideostreams.php
[Mon Dec 06 16:35:29 2010] [error] [client 127.0.0.1] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\\\PHP\\\\ext\\\\php_mcrypt.dll' - The specified module could not be found.\\r, referer: http://localhost/audiovideostreams.php
[Mon Dec 06 16:35:29 2010] [error] [client 127.0.0.1]  in Unknown on line 0, referer: http://localhost/audiovideostreams.php

Well, stating the obvious, the server cannot find the file expected in the place it assumes it should be.

Is it there or not?

If it IS there then check the manual carefully and see if php_mcrypt has any dependencies. These may be other dll files which are similarly missing from your system, but PHP may only cry about that which is being called.

nb server restart will be needed