I'm not sure what's going wrong in any of these situations - I think I've
missed the earlier messages, however this might help - it's some 'what to do
when it all goes wrong' notes which I'm about to add to the PHP Windows
installation instructions. Maybe they'll be useful in your situations maybe
not.
Cheers
- You have installed PHP, but when try to access a php script file via your
browser, you get a blank screen:
Do a 'view source' in the web browser and you will probably find that you
can see
the source code of your php script. This means that the web server did not
send the
script to php for interpretation. Something is wrong with the server
configuration -
double check the server configuration against the php installation
instructions.
- You have installed PHP, but when try to access a php script file via your
browser, you get a server 500 error:
Something went wrong when the server tried to run PHP. To get to see a
sensible error message, from the command line, change to the directory
containing php.exe and run
php.exe -i
If php has any problems running, then a suitable error message will be
displayed
which will give you a clue as to what needs to be done next.
If you get a screen full of html codes (the output of the phpinfo()
function) then
php is working ok, and your problem may be related to your server
configuration
which you should double check.
- You have installed PHP, but when try to access a php script file via your
browser, you get the error:
cgi error:
The specified CGI application misbehaved by not returning a complete set
of
HTTP headers. The headers it did return are:
This error message means that php failed to output anything at all.
From the command line hange to the directory containing php.exe. Run
php.exe -i
If php has any problems running, then a suitable error message will be
displayed
which will give you a clue as to what needs to be done next.
If you get a screen full of html codes (the output of the phpinfo()
function) then
php is working ok.
Once php is working at the command line, try accessing the php script via
the browser again.
If it still fails then it could be one of the following:
file permissions on your php script, php.exe, php4ts.dll, php.ini or any
php
extensions you are trying to load are such that the anonymous internet
user
ISUR_<machinename> cannot access them.
The script file does not exist (or possibly isn't where you think it is
relative to your web root directory). Note that for IIS you can trap this
error by ticking
the 'check file exists' box when setting up the script mappings in the
Internet Services
Manager. If a script file does not exist then the server will return a 404
error instead.
There is also the additional benefit that IIS will do any authentication
required for you
based on the NTLanMan permissions on your script file.
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]