Am getting a 500 internal server error while running any php script on my local machine with windows xp OS.
I installed PHP 5, Apache 2.
Changed the httpd.conf as follows
For PHP 5
LoadModule php5_module "I:/php/php5apache2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm
Action application/x-httpd-php "I:/php/php.exe"
configure the path to php.ini
PHPIniDir "C:/windows/"
The error log shows:
[client 127.0.0.1] D:/myscripts/index.php is not executable; ensure interpreted scripts have "#!" first line
[client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: D:/myscripts/index.php
Someone please help with this!