#21833 [NEW]: IIS 5.0 requires additional parameters on Add Mappings Tab
| From: | dvorobyov at sympatico dot ca | Date: | Thu, 23 Jan 2003 04:07:43 +0000 |
| Subject: | #21833 [NEW]: IIS 5.0 requires additional parameters on Add Mappings Tab | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969351207@lists.php.net to get a copy of this message | ||
From: dvorobyov@sympatico.ca
Operating system: Windows 2000 Server
PHP version: 4.3.0
PHP Bug Type: Documentation problem
Bug description: IIS 5.0 requires additional parameters on Add Mappings Tab
<?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 bug report at http://bugs.php.net/?id=21833&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21833&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21833&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21833&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21833&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21833&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21833&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21833&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21833&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21833&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21833&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21833&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21833&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21833&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21833&r=gnused