Using Apache, OS of Windows XP Professional I edited the httpd.conf file and added these lines to the end of it:
ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php.exe" Then I created a text file called "phpinfo.php" and put it in the DocumentRoot directory (in my case, C:\My Website) with the following line of code: <? phpinfo(); ?> and then tried to access it at http://localhost/phpinfo.php Except I get an Internal Server Error. In the error log: [error] [client 127.0.0.1] Premature end of script headers: php.exe