Page 1 of 1

need help with making apache run php

Posted: Tue Nov 17, 2009 6:02 am
by number67a
I can not make aparche server output
php_info. it comes back with an error
500 or error 400 over and over again.

I checked th error log and it says
Premature end of script headers: c:/php/php.exe

I have tried
(1) re-installing Aparche
(2) Re-installing php.
(3) Changing the httpd.conf
to include
and exclude

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"


#LoadModule php5_module c:/php/php5apache.dll
#AddModule mod_php5.c
#AddType application/x-httpd-php .php.
But the problem still remains.
I have also tried to output simple php codes
like hello world!, it still doesn't work.
Would be glad if you can please help me.

Yours sincerley

David James

Re: need help with making apache run php

Posted: Tue Nov 17, 2009 6:30 am
by iankent
I'm assuming Windows seeing as the paths start with a drive letter!

In which case, try using php_cli.exe instead of php.exe :)

hth

edit: apologies - it appears its php-cgi.exe not php_cli.exe!
also, have you considered using XAMPP instead of configuring manually?

Re: need help with making apache run php

Posted: Sun Nov 22, 2009 1:08 am
by misksh
I just tried XAMPP and it works great! It saved me a lot of time and head aches.

Thanks!! :D