为什么ApacheHaus不提供* .php5文件? [英] Why ApacheHaus not serving *.php5 files?

查看:105
本文介绍了为什么ApacheHaus不提供* .php5文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我有一个Windows 7终极64位系统。

我安装并配置了ApacheHaus版本2.4.10- x86-vc11在我的系统上。

我还在我的系统上安装并配置了PHP版本5.6.3-Win32-VC11-x86。

我可以服务*。通过将文件添加到Apache中的htdocs文件夹,本地主机上的php文件。



我已经使用

 <?php  
phpinfo();
?>

脚本。它运行正常。



但是我无法通过Apache提供apache来提供* .php2或* .php3或* .php4或* .php5文件。 br />


而不是提供php代码,它显示代码。



我需要更改什么Apache的httpd.conf文件?



请帮忙。

解决方案

见这里(第8节) - http://php.net/manual/en/install.unix.apache2.php [ ^ ]

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
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.

解决方案

See here (section 8) - http://php.net/manual/en/install.unix.apache2.php[^]


这篇关于为什么ApacheHaus不提供* .php5文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆