[英]How can I tell Apache2, run mod_php5 by default but run this VH in CGI mode?
[英]How can I tell if my Apache2+PHP uses CGI/FCGI?
如果我沒有設置FastCGI或mod_php,這是否意味着我的vanilla Apache2使用CGI for PHP?
phpinfo()
其第三行輸出信息包含在“Server API”中。
在您的情況下(在mod_php下運行),將顯示“Apache 2.0 Handler”。
出於某種原因, php_sapi_name()
對我不起作用。
使用php_sapi_name()
來查找。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.