Click here to Skip to main content
15,884,088 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

I have a windows 7 ultimate 64 bit system.
I have installed and configured ApacheHaus version 2.4.10-x86-vc11 on my system.
I have also installed and configured PHP version 5.6.3-Win32-VC11-x86 on my system.
I am able serve *.php files on localhost by adding file to the htdocs folder in Apache.

I have tested apache to with a file with
PHP
<?php
phpinfo();
?>
script. It work fine.

However I am not able to get apache to serve *.php2 or *.php3 or *.php4 or *.php5 files via Apache.

Instead of serving the php code it is displaying the code.

What do i have to change in the httpd.conf file of Apache?

Please help will be appreciated.
Posted
Comments
Sergey Alexandrovich Kryukov 11-Dec-14 11:33am    
Of course you have to... What's wrong with just reading about it in Apache documentation? It is crystal clear...
Besides, it depends on what you want: just to serve all those files with one Apache handler, or have different handlers for different Apache versions and discriminate processing by different variants of PHP file name patterns (but then why would you support obsolete PHP?)...
—SA

1 solution

 
Share this answer
 
Comments
Christopher Fernandes 11-Dec-14 15:21pm    
Does not work for me. Need for Windows system,
Kornfeld Eliyahu Peter 11-Dec-14 15:29pm    
Should not be any difference if you run PHP under Apache, and that's what I got from your question...
Christopher Fernandes 12-Dec-14 15:12pm    
Hey thanks it is working now.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900