Re:Apache and PHP

From: Date: Mon, 05 Feb 2001 04:29:08 +0000
Subject: Re:Apache and PHP
Groups: php.general 
Request: Send a blank email to php-general+get-38187@lists.php.net to get a copy of this message
"Patrick L. Olson" <patrickolson@qwest.net> wrote: > if I call it like http://127.0.0.1/cgi-bin/one.php > with the shebang line #!php.exe > I get the following error > No input file specified > if I call it without the shebang I get > the Internal Server Error > Error logs indicate the the #! is needed > if I call it in the web root as > http://127.0.0.1/one.php4 > it prints the code to the screen > any insight welcome > Well, I know nothing about Windows, or SSI, but if I were trying to run a php script from Apache_as_localhost I'd do: http://localhost/php_script_thingy.php Unless you're doing something a bit wierd and wonderful the script must be in your htdocs (or whatever else you've called doc root) and should be called (according to what you've told Apache) by .php. Initially I ran into a lot of problems (self-created) by putting php stuff into the cgi bin and, after upgrading to php4, by trying to call stuff as php4 (as I used to call stuff by php3). Hope this helps. -- ****************************************************************************** Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft." ******************************************************************************

« previous php.general (#38187) next »