The server encountered an internal error when trying to execute any PHP script

From: Date: Mon, 19 Aug 2002 17:38:14 +0000
Subject: The server encountered an internal error when trying to execute any PHP script
Groups: php.install 
Request: Send a blank email to php-install+get-8158@lists.php.net to get a copy of this message
Ok, my configuration: Win2k, Apache 2.0.40 + PHP 4.2.3 (todays dev release) Apache Httpd.conf (/WWWROOT/ and other folders are correct aliases - I can browse without problems through my site): ScriptAlias /cgi-bin/ "/WWWROOT/cgi-bin/" <Directory "D:/WWWROOT/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> AddType application/x-httpd-php .php .phtml Action application/x-httpd-php c:/php/php.exe LoadModule php4_module c:/php/sapi/php4apache2.dll (I'v tried CGI/Apache dll ways together and alone ... got all types of errors :) ) Ok here comes what I get when I'm trying to run this Hello world sample: Sample: <html><body><?php $myvar = "Hello World"; echo $myvar; ?></body></html> Errors: 1. The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. (500) 2. The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: test.php (Getting this one if adding #!c:/php/php.exe in the beginning of the script file) Indeed, when I'm trying "c:\php\php.exe test.php" it works perfectly and supplies full set of CGI headers. . P.S. PHP seems to be 5 times more painful (clock-proved) to install than Perl ... Why they don't write good forums in Perl? :( P.P.S. Please reply also to e-mail postmaster@korminfo.ru

« previous php.install (#8158) next »