IIS 7 and Above
Http error 500, Internal server error, code 0x00000000
Last post Feb 07, 2012 09:41 AM by HCamper
Nov 16, 2011 12:02 PM|mcgarcia|LINK
I am a Linux user who has recently started administering a Moodle site under IIS7, so I am quite new in the subject.
I have a problem in my site which I think it is caused by IIS (php_via_FastCGI handler).
The details of the error are:
Http Error 500.0 Internal Server Error
Notification: Executive Request Handler
Logon Method: Anonymousg
Logon User: Anonymous
URL: my site
Physical path f:/the path to the file import.php I run.
I have checked that FastCGI is correctly install and all the requirements in the php.ini are OK.
If I were in a Debian server, I would look if the web user has the right permissions for writing in the data folder of my Moodle site, but I don't know how to do this in IIS7.
I read the "Understanding Buil-int User andf Groups Accounts in IIS7". I know the different between the IUSR account and the IIS_IUSRS account,but I dont quite understand which is the web user account in IIS.
Can you please help me?
Thank you very much.
Nov 16, 2011 12:45 PM|HCamper|LINK
This guide for FastCGI and PHP http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis/
Nov 17, 2011 06:22 AM|mcgarcia|LINK
Thank you very for your help, Martin.
I will have a look to the links you mention.
Yes, I suspected that it may be the case of "the Recycle settings and not having IUSR IIS_IUSRS permissions for the php-cgi.exe." but I didn't know how to tackle it in Windows.
Nov 18, 2011 01:45 AM|Lloydz|LINK
The 500 error is too generic to locate the root cause. Does a simple phpinfo() works? If it works, then does it provide any useful information if you set
display_errors = On in php.ini?
Nov 18, 2011 03:26 AM|HCamper|LINK
Check Lloydz PHP Manager
http://www.iis.net/community/default.aspx?tabid=34&g=6&i=2007 suggestion information.
You can download and install PHP Manager from the Code Plex Project site it will automate the settings.
Nov 21, 2011 11:16 AM|mcgarcia|LINK
Display errors is on.
I still cannot find where lies the error.
Nov 21, 2011 11:21 AM|mcgarcia|LINK
I also checked that the recycle settings are well configured for the two variables that the manual specifies.
Nov 21, 2011 11:29 AM|HCamper|LINK
Did you install the PHP manager
Nov 24, 2011 12:34 PM|HCamper|LINK
PHP install IIS Server and PHP settings.
post the IIS Server status codes.
Dec 10, 2011 12:21 AM|HCamper|LINK
Check the permissions and handler settings.
Update with current status.
Feb 03, 2012 12:55 PM|HCamper|LINK
Hi Mari Cruz,
Sorry for late reply,
Have you tried setting the Application Pool to be ASP.NET Net 2.0 Classic Mode ?
Add the IUSR IIS_IUSRS permissions read,execute,lists for folders and the sites in IIS Server.
http://learn.iis.net/page.aspx/771/configure-and-optimize-the-microsoft-web-platform-for-php-applications/ PHP application Guides.
http://learn.iis.net/page.aspx/697/configure-php-process-recycling-behavior/ Recycle settings for PHP.
If you check the IIS Server logs for errors status codes post them to be checked.
Feb 07, 2012 09:41 AM|HCamper|LINK
Please update this thread many posts and replies
to help with the problems and issues.
FastCGI process exited unexpectedly PHP IIS7 2008
PHP FastCGI extensions
php fastcgi error
fastCGI php mysql
php iis7 fastcgi 500-error
php fastcgi php.ini
404 IIS7 FastCGI moodle
500 - Internal server error.
IIS 7.5 php fastcgi
php fastcgi timezone php.ini
500 - Internal server error
php sql server
PHP IIS7 64bit
error 503 on IIS 7 with PHP
PHP 5.3.5 slow
php log errors
IIS 7 fastCGI error PHP 500 errors