Issues Opening a file in the browser

When I try to open the file path below in the browser

http://localhost/folder/index.php

It will pop up a box saying whether I want to open or save the file?

I want it to open in the browser not in a editor or save in the disk.

Does anyone has an idea why this behavior is coming up?

THank you

Jonathan.

  1. Make sure Apache is up and running.

  2. Make sure mod_php is enabled in httpd.conf.

  3. If ti still doesn’t work, try reinstalling your LAMP/WAMP/MAMP stack.

Thanks risok,

Now you have mention about httpd.conf I think I recently commented it in the apache.

Thank you