Hi all,
What I try to do
Configure 1 website to execute long running (up to 5 minutes) php scripts, by adjusting FastCGI's "ActivityTimeout" setting. I do not want to enable this setting for all websites by adjusting the normal FastCGI application settings, but I
want to create a new FastCGI application where I can map that one website to.
How I tried to do that
According to
this site I can create different FastCGI applications for different websites. The unique identifier for a FastCGI application is the combination of the executable and the arguments. The steps I took:
- Creating a new FastCGI application with the settings:
- executable: "E:\Program Files\PHP\php-cgi.exe"
- arguments: "long_process" PHP actually does not do anything with this, except passing it as arguments to the php script, where they appear in the
$argv[] array. See this php manual
- Setting the application´s ActivityTimeout to a few minutes
- <div>Adding a *.php module mapping in the hander mappings from that one specific website with the settings:</div>
- Module: FastCgiModule
- Request path: *.php
- Executable: "E:\Program Files\PHP\php-cgi.exe"|long_process
- Restrictions: file&folder, all verbs, script
The problemIIS outputs an Internal Server Error (500):
HTTP Error 500.0 - Internal Server Error<handler> scriptProcessor could not be found in <fastCGI> application configuration
Detailed Error Information
Module: FastCgiModule
Notification: ExecuteRequestHandler
Handler: PHP_Fast_CGI_Mapping
Error Code: 0x80070585
No matter what I try, which arguments (also more 'valid' php commandline arguments, such as simply -v to display the version or -d open_basedir <path> to define the basedir), the outcome is always the same. The problem looks a lot like
this forum post:
How can I pass command line arguments to my fastcgi process?
Does anybody have an idea what to do?
Thanks in advance!