精華區beta FreeBSD 關於我們 聯絡資訊
【 在 [email protected] (訪客) 的大作中提到: 】 : ※ 引述《[email protected] (Ptp)》之銘言: : : 我也是用 apache2 + mod_php 用 port 安裝 : : 若透過 port 安裝要如何加入 -DWITH_APACHE2? : : 因 phpinfo() 仍然不出來, 開啟 .php 會出現另存畫面 : cd /usr/ports/www/mod_php4 : make -DWITH_APACHE2 install : 之後還得再改 /usr/local/etc/apache/httpd.conf 可以了, 謝謝 我的安裝步驟是: # cd /usr/ports/www/apache2 # make deinstall # make install FORCE_PKG_REGISTER="yes" all # cd /usr/ports/www/mod_php4 # make deinstall # make -DWITH_APACHE2 FORCE_PKG_REGISTER="yes" install # vi /usr/local/etc/apache2/httpd.conf 加入 DirectoryIndex abc.htm index.html index.html.var index.php index.php3 index.shtml AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps (上次安裝 mod_php4 沒有出現提示 AddType application/x-htttpd-pph .php # httpd -l Compiled in modules: core.c prefork.c http_core.c mod_so.c 重新啟動 httpd, 看到 phpinfo() 執行結果了 -- ※ 來源:‧良美家族總寨 hiperfect.com‧[FROM: localhost]