Forums / Installing on a Linux/Unix Server / Installer thinks it is a CGI mode...and not FastCGI?

Installer thinks it is a CGI mode...and not FastCGI?

Locked

Views: 3,475

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
30 May 2009, 5:05 PM
#1
nishikantkapoor avatar

nishikantkapoor

New Zenner

Join Date:
Feb 2009
Posts:
2
Plugin Contributions:
0

Installer thinks it is a CGI mode...and not FastCGI?

I am trying to install Zen Cart v1.3.8a on a Linux system with Centos Rel 5. The installer thinks PHP is running in CGI mode and not in FastCGI whereas all the info in phpinfo() seems to indicate that PHP is in fact running in FastCGI mode.

Does anyone know why the installer is raising the "PHP API Mode = cgi-fcgi" warning?

Thanks,
Nishi

PHP API Mode = cgi-fcgi <Click here for more info>

'More info' says

"PHP running as cgi not recommended unless server is Windows"
Running PHP as CGI can be problematic on some Linux/Unix servers.
Windows servers, however, "always" run PHP as a cgi module, in which case this warning can be ignored.

Here are parts of phpinfo():

  • 'Configure Command' section in phpinfo() output shows that php is compiled with '--enable-fastcgi'

  • 'Server API' section shows CGI/FastCGI

  • 'Environment' section
    -- TARGET /usr/bin/php-cgi
    -- SERVER_SOFTWARE lighttpd/1.4.18

  • 'PHP Variables' section
    -- _SERVER["TARGET"] /usr/bin/php-cgi
    -- _SERVER["SERVER_SOFTWARE"] lighttpd/1.4.18

php -v

PHP 5.2.1 (cli) (built: Feb 7 2008 03:57:23)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

php-cgi -v

PHP 5.2.1 (cgi-fcgi) (built: Feb 7 2008 03:55:08)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

31 May 2009, 12:21 AM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Installer thinks it is a CGI mode...and not FastCGI?

Hi and Welcome to the Forum. :smile:

If I may point out the obvious, Fast CGI is still CGI. Not sure why Zen Cart thinks Linux running in Fast CGI mode is a problem but I cannot see where it would be.

No matter though, ignore the warning and continue install as normal.

Remember also to ignore any mention of setting dir. or file permissions to 777 as that will not work with Fast CGI. Just stick with normal settings and don't change any.

The learning is in the doing.

Potent Products

31 May 2009, 1:37 AM
#3
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: Installer thinks it is a CGI mode...and not FastCGI?

I've had few (none really) problems running Zen Cart with fcgi. In some instances it made a pretty good performance improvement.

YMMV.

23 Sep 2009, 7:25 PM
#4
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Installer thinks it is a CGI mode...and not FastCGI?

kiddo:

I've had few (none really) problems running Zen Cart with fcgi. In some instances it made a pretty good performance improvement.

YMMV.
Hi there - I have a quick question on this - I'm doing a cart for a customer, not on my server and I've run into php in CGI mode - how the heck does one get around the permissions issues? This server has everything wide open and I can't get rid of the ugly red security error message. I've set permission at 644 on both config files, but they are detected at 777 - I'm sure there must be a work around on this... just not familiar with this setup - :blink:

Any suggestions would be really helpful.

Ruth

23 Sep 2009, 7:36 PM
#5
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Installer thinks it is a CGI mode...and not FastCGI?

Solved - :clap:

Found the answer - chmod to 444 does the trick.

Sorry for the post! But maybe someone else will run into the problem and fine this post easier.

Ruth