PHP, Apache, Win95 pure binary install - "No input file specified"

[email protected] ("Barry W. Eaton") Wed, 7 Jun 2000 14:14:40 -0400
Newsgroups php.version4
Message-ID <[email protected]>
I'm new to PHP and Apache so please bear with me.  I've followed all the
instructions I found everywhere, and none seem to get me past my current
problem.

I've installed Apache1.3.12 with perl 5.6 and they seem to work fine (apart
and together).
I've installed MySQL 3.22.34 and PHP (3 and 4), and they seem to work fine
outside of Apache.  I'm just trying to get PHP (either version) to work from
within Apache at this time.

I do not have mod_php.  I can't find the win95 PHP binary for it anywhere
(doesn't come with PHP distribution) and don't have a C++ 5.0 compiler, so
building it is out of the question (unless I can use C++ 1.0, it's been a
while).

"h:/Progra~1/Php3/" is in the PATH environment variable, just in case.
Everything (Apache, PHP, perl, MySQL) is on my H: drive.

Here's some of my httpd.conf file:

# --------------------

ScriptAlias /cgi-bin/ "h:/Program Files/Apache/Apache/cgi-bin/"
(perl scripts are here)
ScriptAlias /php-bin/ "h:/Program Files/Apache/Apache/php-bin/"         (php
scripts are here, I've tried with Alias, too)
# I've tried with and without these <Directory> lines, and changed the
Options.
<Directory "h:/Program Files/Apache/Apache/php-bin">
    AllowOverride None
    #Options Indexes FollowSymLinks ExecCGI
    #Options ExecCGI
    Options Indexes FollowSymLinks
    Order deny,allow
    Allow from all
</Directory>

AddType application/x-httpd-php3 .php
AddHandler cgi-script .pl                  (perl has never failed)
AddHandler cgi-script .php               (without this I get "Page cannot be
displayed")
Action application/x-httpd-php3 "h:/Program Files/Php3/PHP3.exe"
# I found the args on the next line somewhere, still no good.
#Action application/x-httpd-php3 "h:/Program Files/Php3/PHP3.exe -q %1"
# --------------------

I've finally gotten it to execute PHP, but the resulting page is (no error
in log file):
  "No input file specified."

How can I get Apache to pass PHP an argument (file name).  Are there any "%"
type arguments I need to use with the Action directive?  Anything for the
registry?

Remember, this is a pure binary installation with NO mod_php (unless you can
point me to where I can get one).  Is this called the CGI version (I think I
heard it called that somewhere)?

Here's the jinfo.php I'm trying to execute.  It works fine without using
Apache:
#! h:/Program Files/Php3/Php3.exe
<?
  phpinfo();
?>

Everything's the same whether I use PHP 3 or 4.  I've used forward and back
slashes in the path, and I've removed the path altogether so it would use
the PATH environment variable.  Same thing every time.  Even commenting out
the AddType directive gives me the same error.

Commenting out the Action directive (keeping the AddType)... same thing.
Commenting out both Action and AddType and I get a MsgBox that said... well
I can't seem to reproduce that error anymore.  I think it was "Can't find
document (or something like that). Server was reset".  But it doesn't do
that any more.

Is there a possibility that a "-k restart" doesn't completely reprocess all
directives?  And that I need to redo all my testing with a "-k shutdown"
between changes to the conf files?

thanks in advance,
Barry W. Eaton