Hello all,

I've tried some hours now to get PHP working on my local machine but I 
can't find out why it refuses to do so.

Operating System: Windows 2000
Server: Apache/1.3.12
PHP version: 4.2.0 (binary distribution)

I've already successfully installed PHP as a module on the same machine but 
I need to use the CGI version for development purposes.

I followed the instructions in install.txt and my PHP book but the server 
always returns a "internal server error". The error.log says
"Premature end of script headers: d:/php/sapi/php.exe"

This is because the php interpreter does not return any data at all (not 
even headers). I guess this has to do with security restrictions but I 
could not find the exact reason.


Some more info:
Apache is installed in I:\Programme\Apache Group\Apache\
PHP is installed in D:\PHP\
http.conf contains:

 ScriptAlias /php/ "d:/php/sapi/"
 AddType application/x-httpd-php-test .php-test
 Action application/x-httpd-php-test "/php/php.exe"

I've chossen these special "test" extensins because the .php extension is 
already associated to the module version of PHP. I'm pretty sure this is 
not the problem.

I've copied php.ini-dist as php.ini in the SYSTEM32 directory and changed 
the following settings:

extension_dir = "D:\php\extensions"
doc_root = "I:\Programme\Apache Group\Apache\htdocs"

changed nothing else (but tried much before, now reinstalled PHP).


Any ideas? I really don't know what I should try now... 

Udo


-- 
Udo Giacomozzi - [EMAIL PROTECTED]
www.nova-sys.net - www.guweb.com
The disadvantage of intelligence is that one 
is constantly obliged to go on learning.

Posted by ELKNews 1.0.4-B
Empower your News Reader! http://www.atozedsoftware.com

-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to