看板FreeBSD
標 題Re: [問題] php無效
發信站金魚學園 (Mon Oct 15 11:48:31 2007)
轉信站ptt!ctu-reader!ctu-gate!news.nctu!news.ntu!feeder.seed.net.tw!netnews!
※ 引述《[email protected] (resolution)》之銘言:
> 請問各位大大:
> 我的 OS 是 freebsd 6.2
> 我有個已經裝好了的 apache 2.2 是抓 source code 安裝的
> 用 ports裝完 php5後
> 也在 httd.conf 加入了
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
> 這樣,
> 重跑了 apache
> 只要是執行 php 都會變成檔案下載
> 難道是 php 沒在動嗎 謝謝^^
在<IfModule mod_dir.c>裡面增加下面3行看看
(通常我都是直接把php4 -> php5)
<IfModule mod_php5.c>
DirectoryIndex index.php index.php index.html
</IfModule>
--
錯誤
一對夫婦結婚二十周年,老婆提議殺隻雞慶賀一番。
老公冷冷應道:「何必把二十年前的錯誤算在一隻雞頭上呢?」
--
◤◥ Or
igin:
金魚學園 ╳ 金魚學園 cnda.twbbs.org
◣◢ A
uthor:
keisuke 從
192.168.10.52 發表