Activation context generation failed for "C:\php\php-cgi.exe". Dependent Assembly  [Answered]RSS

1 reply

Last post Jun 30, 2011 12:02 AM by HCamper

  • Activation context generation failed for "C:\php\php-cgi.exe". Dependent Assembly

    Jun 29, 2011 11:34 PM|Eyla|LINK

     

    Greeting,

    I have Windows Server 2008 Server Core. I want to configure this server to host php websites using IIS 7.

    I installed and configured IIS7 to run php using the steps in this website:

    http://blogs.msdn.com/b/philpenn/archive/2009/07/19/deploying-iis-7-5-fastcgi-php-on-server-core.aspx

    Now I’m facing a problem that when I request my php website I would get  this error.

    Server Error

    500 - Internal server error.

    There is a problem with the resource you are looking for, and it cannot be displayed.

    I check the even log and I found these details too:

    Activation context generation failed for "C:\php\php-cgi.exe". Dependent Assembly Microsoft.VC90.CRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

    I search about this error and I found a solution for it but which is to install Microsoft Visual C++ 2008 SP1 Redistributable Package (x86). I installed but still I’m getting same error.

    Please help me to solve this problem and let me know if you want to know more info about my issue.
  • Re: Activation context generation failed for "C:\php\php-cgi.exe". Dependent Assembly

    Jun 30, 2011 12:02 AM|HCamper|LINK

    Hello,

    I suggest that you use the IIS Net http://learn.iis.net/page.aspx/724/install-and-configure-php/ guide instead of the one you have been working from.

    I also suggest you get the Windows installer from the PHP for Windows site that is non-thread safe instead of the zip archive.

    Using the IIS Net guides from above along with the one for  FastCGI and Recycling get the basics going.

    I also suggest you get the PHP manager from the IIS Net Download section to maintain the PHP configuration

    and settings  http://www.iis.net/community/default.aspx?tabid=34&g=6&i=2007 .

    Martin

     

    Windows and Linux work Together IT-Pros
    Community Member Award 2011