ID:               21833
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Documentation problem
 Operating System: Windows 2000 Server
 PHP Version:      4.3.0
 New Comment:

I have *NOT* experienced this requirement with PHP installed as a CGI
on my Win2K/IIS5.0 installation. (I just have "c:\php\php.exe" entered
in my IIS5.0 setup).

Some research needs to be done to determine when and why it is
necessary.


Previous Comments:
------------------------------------------------------------------------

[2003-01-22 22:34:30] [EMAIL PROTECTED]

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 :)

------------------------------------------------------------------------

[2003-01-22 22:15:54] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

<?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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to