發信人: Wiseguy (聖手書生) 看板: php 日期: Fri Aug 15 19:55:52 2003 標題: Re: 請問如何設定不讓使用者使用php > ==> capoer.bbs@bbs.yzu.edu.tw (人生修行中) 的文章中提到: > ※ 引述《"SATURNBOY"》之銘言: > > > > AllowOverride None > > Option None > > php3_engine off > > Order allow,deny > > Allow from all > > > > PHP Manual 的說明: > > engine boolean > [deleted...] > 請問一下,我想要讓一般 user 無法使用 PHP,但是我照上面的設定再重新啟動 > apache 卻會有問題,錯誤訊息如下: > Syntax error on line 229 of /usr/local/etc/apache/httpd.conf: > Invalid command 'php3_engine', perhaps mis-spelled or defined by a module > not included in the server configuration > 我的 apache 是 1.3.12 ,PHP 4.3.0 ,請問一下該如何設定,謝謝! 不用寫那一大坨,就一行 RemoveType application/x-httpd-php .php 即可。 php3_engine 這個指令,時靈時不靈,我從 PHP 4.0.x 試到 PHP 4.3.x 行為都怪怪的,該 engine on 的,它就給你秀 PHP source 到 USER 端, 該 off 的又執行,嚇都嚇死了,倒不如 RemoveType 來得乾淨利落,而且 Apache 1.3.x 跟 2.0.x 都適用 (php_engine 只適用 1.3.x)。 -- * Origin: 中山大學-美麗之島BBS * From: 61.70.107.254 [已通過認證] .