There is a problem with the resource you are looking for, and it cannot be displayed.
I did everything I could think of and also went through everything I read online about this type of error and nothing worked so far.
Not the php settings, not the permissions I am also using the windows installer which configured everything using recommended settings.
I even checked environment variables to make sure everything is ok.
I also, did all windows updates to make sure nothing missing or that needed an update would cause the problem.
The issue is this, I get a 500 error when calling a script that does a number_format(0) with another line of code that queries a database using ODBC link (Acomba) which is an accounting software.
The page loads fine one time then the 2nd refresh causes a 500, and its always like that, on every 2 refresh.
When calling number_format(0) alone, it causes a 500 but less often than with the query.
I have no errors in my error logs, I made sure it could write to the log by doing a simple test.
I configured a trace in IIS to see what it says and this is what I get:
C:\Program Files (x86)\PHP\v5.3\php-cgi.exe - The FastCGI process exited unexpectedly
<div class="content-container">
ModuleName
FastCgiModule
Notification
128
HttpStatus
500
HttpReason
Internal Server Error
HttpSubStatus
0
ErrorCode
3221225614
ConfigExceptionInfo
Notification
EXECUTE_REQUEST_HANDLER
</div><div> </div>
Just so you know, we tried PHP 5.3.6 before this and we are getting the same error.
We also tried PHP 5.2.17, this one works, the issue is that the numbers are messed up, we keep getting .: on certain numbers when rounding.
E.g. ceil(28.08) returns 28.:
This seems corrected in 5.3.8.
We also have another server running Windows server 2008 R2 and it also gives the same error when installing PHP 5.3.8
If anyone has any idea on what could be causing this problem, please let me know, we are desperately trying to fix this issue to get passed it.
The only other solution we have is overriding the number_format function to skip the 0.
But we have no idea if there are other issues that would cause it to fail with a 500 error,
I googled and look at a lot of posts that spoke of IIS 7 and 500 errors.
I checked the php.ini configurations, but I am using the windows installer so it sets it up according to what should be by itself.
I am not using open_basedir.
I have switched off logging.
I have looked at the permissions for the PHP folder, they are ok, even if I add the IIS_IUSRS, it doesn't change anything.
I even checked in the registry, set the correct path to my PHP.
PHP manager has no problems or issues with my configuration.
I have Visual C++ 2008 Redistributable 9.0.21022 and 9.0.30729.6161 installed.
Is this the same as the visual studio 2008 runtimes? if not, can you provide a link maybe, so I am sure which ones I need.
The error so far happens on number_format(0) or number_format(0.00) but other numbers seem to work, I haven't tried all numbers.
When I do echo sprintf("%01.2f", 0), this works.
I tried running the script command line and browser, only on the browser does it return a 500 error, on the command line, it works fine without ever giving me a 500 error.
Oh btw, I tried PHP 5.2.17 and it worked fine using FastCGI. But I get a number problem which is like the one mentionned here:
The recycle settings are ok, I pointed it to the php.ini.
"The Visual Studio C++ 2008 is the Runtime VC9 plus the latest patchs and updates."
I am running Windows Server 2008 R2 Standard with Service pack 1 and all updates installed.
Other than that, I have the 2 redistributable visual c++ 2008 installed I mentionned in my previous post.
Is that ok? Or are there other files I need to install that I do not know of and that do not appear in the windows update?
There is nothing in the php error logs. As I stated before, I did tests to make sure my errors would appear fine in the logs and they do, so my simple script does not return errors to the logs.
The phpinfo in both php manager and ini settings match. It even points to the correct php.ini in the loaded configuration file.
Also the not net framework is 2.0 and classic like you stated for the phppool
I also wanted to add that I followed the instructions for the improving php errors and I did what it mentionned but it still gave me the normal 500 error msg. So nothing changed at that point.
Oh and thanks btw for giving me tips, I really appreciate it.
I don't know if it helps but it really seems like the number_format(0) alone in a script causes the crash.
It doesn't crash as often as when I put it with my database query but it seems to do it anyway.
It just pisses me off that there is not a lot of information regarding the crash or at least information that I can use to find out what's causing it.
kheang
15 Posts
Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 01:04 PM|LINK
Hi,
I am getting an intermittent error:
There is a problem with the resource you are looking for, and it cannot be displayed.
I did everything I could think of and also went through everything I read online about this type of error and nothing worked so far.
Not the php settings, not the permissions I am also using the windows installer which configured everything using recommended settings.
I even checked environment variables to make sure everything is ok.
I also, did all windows updates to make sure nothing missing or that needed an update would cause the problem.
The issue is this, I get a 500 error when calling a script that does a number_format(0) with another line of code that queries a database using ODBC link (Acomba) which is an accounting software.
The page loads fine one time then the 2nd refresh causes a 500, and its always like that, on every 2 refresh.
When calling number_format(0) alone, it causes a 500 but less often than with the query.
I have no errors in my error logs, I made sure it could write to the log by doing a simple test.
I configured a trace in IIS to see what it says and this is what I get:
This is the event error msg:
Faulting application name: php-cgi.exe, version: 5.3.8.0, time stamp: 0x4e537f4b
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17651, time stamp: 0x4e211319
Exception code: 0xc000008e
Fault offset: 0x0000b9bc
Faulting process id: 0xb00
Faulting application start time: 0x01cc76023c0209a8
Faulting application path: C:\Program Files (x86)\PHP\v5.3\php-cgi.exe
Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
Report Id: 79f5fec0-e1f5-11e0-a6ed-bc305bd47266
This is what I get from the trace error log
EXECUTE_REQUEST_HANDLER
Just so you know, we tried PHP 5.3.6 before this and we are getting the same error.
We also tried PHP 5.2.17, this one works, the issue is that the numbers are messed up, we keep getting .: on certain numbers when rounding.
E.g. ceil(28.08) returns 28.:
This seems corrected in 5.3.8.
We also have another server running Windows server 2008 R2 and it also gives the same error when installing PHP 5.3.8
If anyone has any idea on what could be causing this problem, please let me know, we are desperately trying to fix this issue to get passed it.
The only other solution we have is overriding the number_format function to skip the 0.
But we have no idea if there are other issues that would cause it to fail with a 500 error,
FastCGI IIS7 error 500 windows server 2008
HCamper
8048 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 01:34 PM|LINK
Hi,
Have you looked at http://forums.iis.net/t/1179534.aspx thread for FastCGI?
So which guides "I read online about this type of error and nothing worked so far." did you find ?
The common problems can fixed and checked with the PHP Manager.
Do you have the Visual Studio 2008 runtines installed ?
Martin
Community Member Award 2011
kheang
15 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 01:44 PM|LINK
I googled and look at a lot of posts that spoke of IIS 7 and 500 errors.
I checked the php.ini configurations, but I am using the windows installer so it sets it up according to what should be by itself.
I am not using open_basedir.
I have switched off logging.
I have looked at the permissions for the PHP folder, they are ok, even if I add the IIS_IUSRS, it doesn't change anything.
I even checked in the registry, set the correct path to my PHP.
PHP manager has no problems or issues with my configuration.
I have Visual C++ 2008 Redistributable 9.0.21022 and 9.0.30729.6161 installed.
Is this the same as the visual studio 2008 runtimes? if not, can you provide a link maybe, so I am sure which ones I need.
The error so far happens on number_format(0) or number_format(0.00) but other numbers seem to work, I haven't tried all numbers.
When I do echo sprintf("%01.2f", 0), this works.
I tried running the script command line and browser, only on the browser does it return a 500 error, on the command line, it works fine without ever giving me a 500 error.
Oh btw, I tried PHP 5.2.17 and it worked fine using FastCGI. But I get a number problem which is like the one mentionned here:
https://bugs.php.net/bug.php?id=47304 and https://bugs.php.net/bug.php?id=49764
This is why I am trying to get 5.3.8 working.
HCamper
8048 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 01:59 PM|LINK
Ok,
Then check that the Recycle settings are correct use this http://learn.iis.net/page.aspx/765/improve-php-error-messages-in-iis-7/ to
Enable PHP Error Display. The Visual Studio C++ 2008 is the Runtime VC9 plus the latest patchs and updates.
Check that your using Dot Net Framework version 2.0 and "Classic" mode http://learn.iis.net/page.aspx/624/application-pool-identities/ for
the PHP sites.
Have you checked the php-error.log ? The "default" php.ini does not display errors in the Browser and you may find
the php-error.log has information that will help ie extensions problems and Time / Zone settings etc.
Does the PHP Manager phpinfo test match the php.ini settings ?
Martin
Community Member Award 2011
kheang
15 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 02:34 PM|LINK
The recycle settings are ok, I pointed it to the php.ini.
"The Visual Studio C++ 2008 is the Runtime VC9 plus the latest patchs and updates."
I am running Windows Server 2008 R2 Standard with Service pack 1 and all updates installed.
Other than that, I have the 2 redistributable visual c++ 2008 installed I mentionned in my previous post.
Is that ok? Or are there other files I need to install that I do not know of and that do not appear in the windows update?
There is nothing in the php error logs. As I stated before, I did tests to make sure my errors would appear fine in the logs and they do, so my simple script does not return errors to the logs.
The phpinfo in both php manager and ini settings match. It even points to the correct php.ini in the loaded configuration file.
Also the not net framework is 2.0 and classic like you stated for the phppool
I also wanted to add that I followed the instructions for the improving php errors and I did what it mentionned but it still gave me the normal 500 error msg. So nothing changed at that point.
Oh and thanks btw for giving me tips, I really appreciate it.
HCamper
8048 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 02:52 PM|LINK
Hi,
Could you visit the PHP for windows archive http://windows.php.net/downloads/releases/
and download the tests http://windows.php.net/downloads/releases/php-test-pack-5.3.8.zip and
run some of them ?
You only have the two "I have the 2 redistributable visual c++ 2008 installed" so that means the intel X86 and Amd X64.
I suggest visit the Microsoft Download Center and Download the VS 2005, VS2005 SP1, VS 2008 SP1 ,VS 2008 ATL
and get the intel X86 and amd X64 versions and install them. After the collection has installed check Windows Update for either
offers to install latested patchs or they have been installed. The sizes are on avgerage 2 - 4 megs so that hope full is not an issue.
I find that when installing a System one of the things that helps is install all the Visual Studio Runtimes at one time.
Martin
Community Member Award 2011
kheang
15 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 03:15 PM|LINK
Ok,
I installed Microsoft Visual C++ 2005 SP1 and Microsoft Visual C++ 2008 SP1 (both X86 and X64).
I did all updates for them also.
I didn't install Microsoft Visual C++ 2005 and 2008 because windows server 2008 R2 isn't in the list of supported OS.
I still get the same error.
I am rebooting it to see if it changes anything. Nope no changes.
Should I still install the 2005 and 2008 even if they don't list windows server 2008 R2 as supported?
For the test pack what do I with it? I see a bunch of files, do I simply go to one of the tests folder and run any php file?
HCamper
8048 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 04:24 PM|LINK
Hi,
Sorry that Runtimes have not fixed the Problems on to the next.
Thanks,
Martin
Community Member Award 2011
HCamper
8048 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 04:52 PM|LINK
Hi,
Your PHP 5.3.8 that you installed is it the Non-Thread-Safe
http://windows.php.net/downloads/releases/php-5.3.8-nts-Win32-VC9-x86.zip ?
If you installed the PHP 5.38 thread safe version it might explain some of the problems.
Martin
Community Member Award 2011
kheang
15 Posts
Re: Windows Server 2008 R2, IIS7, FastCGI + PHP 5.3.8 - 500 error
Sep 18, 2011 05:10 PM|LINK
We installed the non thread safe version.
Currently I tried this installer to get it running with the correct configurations.
http://www.microsoft.com/web/platform/phponwindows.aspx
And in my phpinfo it says thread safety disabled.
I don't know if it helps but it really seems like the number_format(0) alone in a script causes the crash.
It doesn't crash as often as when I put it with my database query but it seems to do it anyway.
It just pisses me off that there is not a lot of information regarding the crash or at least information that I can use to find out what's causing it.