CGI or Fast CGI is running

nicsopon

Verified User
Joined
Jul 4, 2006
Messages
98
Hi

phpinfo gives
Server API=CGI/FastCGI
Configure Command :
'./configure' '--prefix=/usr/local/php5' '--enable-force-cgi-redirect' '--enable-fastcgi' '--with-config-file-path=/usr/local/etc/php5/cgi' '--with-curl=/usr/local/lib' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr/local/mysql' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--enable-gd-native-ttf' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring'

CGI/FastCGI Section
Directive Local Value Master Value
cgi.check_shebang_line 1 1
cgi.fix_pathinfo 1 1
cgi.force_redirect 1 1
cgi.nph 0 0
cgi.redirect_status_env no value no value
cgi.rfc2616_headers 0 0
fastcgi.logging 1 1

php-cgi command:
# /usr/local/php5/bin/php-cgi -v
PHP 5.2.17 (cgi-fcgi) (built: Mar 17 2013 11:48:21)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

Only 3 parts of phpinfo that has fastcgi keywaord

I see in the forum that Server API=CGI/FastCGI is not means that the server is running FastCGI.

so

How we can know we are using CGI or FastCGI on the server? Any scripts are welcome.

Thanks & Best Regards
 
It looks like PHP installed together with suPHP (CGI mode).
 
Back
Top