#21833 [Opn->Fbk]: IIS 5.0 requires additional parameters on Add Mappings Tab

From: Date: Thu, 23 Jan 2003 04:34:31 +0000
Subject: #21833 [Opn->Fbk]: IIS 5.0 requires additional parameters on Add Mappings Tab
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351209@lists.php.net to get a copy of this message
ID: 21833 Updated by: philip@php.net Reported By: dvorobyov@sympatico.ca -Status: Open +Status: Feedback Bug Type: Documentation problem Operating System: Windows 2000 Server PHP Version: 4.3.0 New Comment: Is this modification specific to (required for) IIS 5 and not IIS 4? Even so, does adding it still allow IIS 4 to work with PHP CGI? This %s %s information appears in the user comments as well but needs to be put in the manual :) Previous Comments: ------------------------------------------------------------------------ [2003-01-22 22:15:54] dvorobyov@sympatico.ca Sorry, I forgot to include URL: http://aspn.activestate.com//ASPN/Reference/Products/ActivePerl/faq/Windows/ActivePerl-Winfaq6.html Link: How do I configure Microsoft IIS 4.0/IIS 5.0 to support Perl ------------------------------------------------------------------------ [2003-01-22 22:07:42] dvorobyov@sympatico.ca <?php phpinfo(); ?> This line produced the "No input file" output after I configured PHP on IIS 5.0 by following each step of installation instructions (I decided to configure PHP to work as a CGI script, not SAPI ) After several tries I understood what the problem is. I have an experience in Perl programming under Linux and Windows and I remembered that Active Perl 5.6 installation script adds not only the script name in Add/Edit Application Extension Mapping dialog but also adds %s %s to the end. Quote from the ActiveState Perl installation docs: "To run Perl as a CGI application, type the full path to Perl.exe followed by %s %s. When a script is executed, the first %s will be replaced by the full path to the script, and the second %s will be replaced by the script parameters." This applies only to CGI mode. For ISAPI mode there is no need in these additional %s %s at the end. So I suggest that installation guide may be corrected like this: --- text --- Windows NT/2000/XP and IIS 4 or newer and PWS 4 on NT Workstation or W2K non server editions --- text --- If you want to use the CGI binary, do the following: Under 'Home Directory', 'Virtual Directory', or 'Directory', click on the 'Configuration' button, and then enter the App Mappings tab. Click Add, and in the Executable box, type: c:\php\php.exe %s %s (assuming that you have unzipped PHP in c:\php\). --- text --- And thats it! Here is also a URL to ActiveState website where I found the explanation for this %s spells :-))) Well, this is it. Everything else is working fine! Denys Vorobyov ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21833&edit=1

« previous php.doc (#969351209) next »