看板FreeBSD
标 题Re: 架设APACHE2.2发生的奇怪事情
发信站SF (Wed Feb 7 23:27:55 2007)
转信站ptt!ctu-reader!ctu-peer!news.nctu!netnews.chu!Leo.mi.chu!SF
※ 引述《[email protected] (小菜)》之铭言:
: 原本架的好好的
: 後来整台重做後
: APACHE跑2.2(之前2.0)
: 发现HTML档都没有问题
: 直接看到网页内容
: 但是PHP档就是不能支援
: 会显示要人下载
: 不知原因出在哪里,
: 恳请大大们解决一下,谢谢!
装完 ports 记得看一下出现的讯息。
# cat /var/db/pkg/php*-*/+DISPLAY
***************************************************************
Make sure index.php is part of your DirectoryIndex.
You should add the following to your Apache configuration file:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
***************************************************************
--
Linux is for people who want to know why it works.
Mac is for people who don't want to know why it works.
DOS is for people who want to know why it does not work.
Windows is for people who don't want to know why it does not work.
--
※Origin:星 情 小 筑 < Star.leobbs.net >
※From: 59-113-191-150.dynamic.hinet.net