error:[client 127.0.0.1] Premature end of script headers: php.exe
I'm new I've seen this posted, but I don't know if anyone has the anwser. I thought I followed the setup and simple script to a tee.
I am running Apache 2 with PHP 5 beta 4
I have added the following to the config files and script. Can someone help.
php.ini
; The root of the PHP pages, used only if nonempty.
; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
; if you are running php as a CGI under any web server (other than IIS)
; see documentation for security issues. The alternate is to use the
; cgi.force_redirect configuration below
doc_root = "c:/Program Files/Apache Group/Apache2/htdocs"
; The directory under which PHP opens the script using /~usernamem used only
; if nonempty.
user_dir =
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:/php/ext"
httpd.conf
#
ScriptAlias: This controls which directories contain server scripts.
ScriptAliases are essentially the same as Aliases, except that
documents in the realname directory are treated as applications and
run by the server when requested rather than as documents sent to the client.
The same rules about trailing "/" apply to ScriptAlias directives as to
Alias.
#
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"
phptest.php
in my c:\Program Files\Apache Group\Apache2\htdocs
<? phpinfo(); ?>
[client 127.0.0.1] Premature end of script headers: php.exe
-- Thanks