Jump to content
新域网络技术论坛

FREEBSD 10.1 Ports安装apache2.4/PHP5.5小问题总结


Jamers
 Share

Recommended Posts

昨天将服务器系统更换为FREEBSD,以获取更高的性能,安装过程中出了一点小状况,原来虚拟机测试过程一切正常,到实际服务器上一切配置完毕居然无法运行PHP页面。

 

在apache的httpd.conf中添加了以下内容:

<FilesMatch "\.php$">
    SetHandler application/x-httpd-php
</FilesMatch>

仍然没用,后来试了一下以前版本的方式,居然测试通过了。什么情况?

AddType application/x-httpd-php .php

原因后来也没找到,备忘一下吧。

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...