I am not able to open the ex.php page I created in my local host. I recently installed Apache 2.2 and PHP. I configured httpd, virtualhost etc as mentioned in many tutorials.
(http://webdevcodex.com/screencast-installing-apache2-php5-mysql5-phpmyadmin3-windows-7-vista/)

Whenever I tyoe http://localhost, the browser tends to download the indox.php file. the file is nothing but phpinfo().
The services are starting and stopping fine.
Anything help is appreciated.
Thanks

When you give it an address of http://localhost it will look for an index file in the root directory (usually www or htdocs). Your program could be in the root directory but more often than not it will be in a separate folder. If you put it in the root folder, you should be able to execute it by typing http://localhost/ex.php.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.