简体   繁体   中英

PHP53_via_FastCGI error 0xc0000005 in Windows Azure WebRole

I don't why, but after 6h of searching the bug, I can't identify it. It appear somewhere deep in the framework code when tring to include a dynamic file path.

When I try to do the exctly same include call on a different place, die IIS Error doesn't appear.

phpinfo() works fine, my application not.

The IIS error:

HTTP Error 500.0 - Internal Server Error D:\\Program Files (x86)\\PHP\\v5.3\\php-cgi.exe - The FastCGI process exited unexpectedly

Module FastCgiModule Notification ExecuteRequestHandler Handler PHP53_via_FastCGI Error Code 0xc0000005

PHP 5.3.9 nts on IIS 7.5

I already red tons of articles about this error, nothing helped. It's funny, because yesterday everything was fine.

Maybe you can give me a helpful hint.

Edit:

It seems I found the reasons for the problem:

1. After deployment into the Azure cloud, some process adds a whole copy of the php.ini to the end of the existing php.ini file. So I get a lot of warings from php-cgi.

-> This was done by the startup task. I'm wondering why the task now enhances everything instead of overwriting as before.

2. I saw that there is a new PHP Version for Windows 5.3.9 (Build date Jan 10 2012 16:30:15). You can also find it over MS Web Platform Installer. I currently use 5.3.8 (Build date Aug 23 2011 12:11:54). I have it in Program files and also in my WebRole folder. Normally the startup task takes my version out of the WebRole folder but newly it doesn't. When I change the paths over RDP, everthings works well.

Now I just need to find a way to enforce Azure to take the PHP in my package.

I found a way to bypass this error. I explained it here: http://blog.itopia.de/windows-azure-custom-php-installation/366

But I still don't know why PHP 5.3.9 create this error and 5.3.8 not...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM