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
need help with making apache run php
Moderator: General Moderators
- 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
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?
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
I just tried XAMPP and it works great! It saved me a lot of time and head aches.
Thanks!!
Thanks!!