need help with making apache run php

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
number67a
Forum Newbie
Posts: 1
Joined: Tue Nov 17, 2009 5:31 am

need help with making apache run php

Post 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
User avatar
iankent
Forum Contributor
Posts: 333
Joined: Mon Nov 16, 2009 4:23 pm
Location: Wales, United Kingdom

Re: need help with making apache run php

Post 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?
misksh
Forum Newbie
Posts: 1
Joined: Sun Nov 22, 2009 12:37 am

Re: need help with making apache run php

Post by misksh »

I just tried XAMPP and it works great! It saved me a lot of time and head aches.

Thanks!! :D
Post Reply