ID: 21833
Comment by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating System: Windows 2000 Server
PHP Version: 4.3.0
New Comment:
%s %s had to be added in the application extension panel before PHP 4,
but afterwards it has always worked without. The comment about %s even
had been in the manual if I remember correctly.
I think this is not a general problem, if it was, there were tons of
bug reports on this - here it works on IIS 4, 5 and 5.1.
Christoph
Previous Comments:
[2003-01-23 09:47:36] [EMAIL PROTECTED]
Thank you for responding to my report!
Well, first of all, I must say that I am PHP beginner with
good Perl/CGI programming experience. I downloaded PHP 4.3.0 for Win32
(not MSI install, just files for manual installation), unpacked it and
configured everything as it was described in the install.txt. Then I
create a small index.php and place there to test
the installation. It didn't work (No input file). So I tried this trick
- it worked. That is how it was. This morning I tried again to remove
these %s and again I received an error. Put them back - everything is
OK. It can be easily tested - just create another website in Internet
Service Manager, configure default application with .php mapping but
without %s and place index.php as a default document.
That is exactly how I did it.
I think this problem also relates to IIS 4.0 and higher.
[2003-01-22 22:38:02] [EMAIL PROTECTED]
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.
[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]
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