I am trying to figure out what is not working correctly in my Apache.
Apache webserver works - http://localhost - 'It Works' displayed in the browser.
I installed PHP and edited files. PHP runs when I enter test.php in a command line (I receive a page of HTML type codes). When I do http://localhost/test.php - I receive <? php phpinfo(); ?> displayed in the browser instead of the actual PHP info web page that is supposed to appear.
Apache is not recognizing the PHP install.
Here are the lines I added to the Apache conf file - httpd.conf
PHPiniDir "C:/PHP" (added to the top of the file)
ScriptAlias /php/ "C:/PHP"
Action application/x-httpd-php "C:/PHP/php-cgi.exe"
AddType application/x-httpd-php-source .php
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
The above four lines are added at the end of the script. I tried it both with and without the php-cgi.exe line.
The test.php file is in the C:/Apache/httdocs folder.
I verified the Apache server is running.
I rebooted the machine after each edit of the httpd.conf file (this was done to be sure the Apache server was reset and started fresh)
What am I missing? Thanks for your help!