我正在尋找一種方法來配置單獨的lighttpd上的虛擬主機來顯示或不顯示錯誤和警告。lighttpd,php,fastcgi - 個別虛擬主機設置的通知警告和錯誤顯示
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
我喜歡使它從虛擬熱點配置。不是從php.ini。
$HTTP["host"] =~ "domain1\.com" {
server.document-root = "/home/lighttpd/domain1.com/http"
accesslog.filename = "/home/lighttpd/domain1.com/logs/access.log"
php_flag display_errors On ....???
}
如果你嘗試上面的代碼,您會收到以下錯誤
[email protected]:~/lighttpd# /etc/init.d/lighttpd restart
2014-02-05 11:23:54: (configfile.c.932) source: /usr/share/lighttpd/mysql_vhost.py line: 8 pos: 24 parser failed somehow near here: display_errors
2014-02-05 11:23:54: (configfile.c.932) source: /etc/lighttpd/lighttpd.conf line: 32 pos: 1 parser failed somehow near here: (EOL)
是否有任何其他的方式來談論從裏面的lighttpd到PHP? PHP作爲一個模塊加載。 它應該是一個。
我從pecl找到了htscanner。但我還不明白。 –
沒關係,我安裝了它,它工作正常,但我不想從.htaccess解決它..我想從虛擬主機中創建它。 –