How to know for sure if FastCGI is being used to run php scripts

前端 未结 8 935
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 14:51

I have a hosted site and I\'m having trouble configuring Joomla (running Joomla + php + mySQL on IIS7 + win server 2008). I have a similar configuration running on a local m

8条回答
  •  悲哀的现实
    2020-12-13 15:41

    Here's a simple test:

    1. Create a phpinfo.php file with

      
    

    inside;

    1. Request http://yoursite.com/phpinfo.php/foobar?foo=bar

    2. Check the output of phpinfo and look for _SERVER["REQUEST_URI"].

    If this variable is missing, then CGI is used. If the variable is present and correctly set to /phpinfo.php/foobar?foo=bar, then either ISAPI or FastCGI is used. Look near the top of the output for Server API; it should be set to either ISAPI (which means ISAPI is being used) or CGI/FastCGI (which means FastCGI is being used, since we already ruled out CGI).

提交回复
热议问题