Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    2
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

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

    Hi and Welcome to the Forum.

    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.

  3. #3
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default 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.

  4. #4
    Join Date
    Aug 2004
    Location
    Fountain Hills, AZ
    Posts
    515
    Plugin Contributions
    1

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

    Quote Originally Posted by kiddo View Post
    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 -

    Any suggestions would be really helpful.

    Ruth

  5. #5
    Join Date
    Aug 2004
    Location
    Fountain Hills, AZ
    Posts
    515
    Plugin Contributions
    1

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

    Solved -

    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

 

 

Similar Threads

  1. Replies: 9
    Last Post: 29 Oct 2012, 11:32 PM
  2. Replies: 5
    Last Post: 20 Jul 2011, 02:24 PM
  3. PHP API mode = cgi - how do I change this?
    By chrono-007 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 26 Oct 2009, 04:14 AM
  4. Google Checkout Basic Authentication Mode With PHP Over CGI
    By chiefintegrity in forum Addon Payment Modules
    Replies: 0
    Last Post: 22 Feb 2008, 12:06 PM
  5. Help needed - maybe "PHP API Mode = cgi-fcgi" error
    By fricy in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 21 Aug 2006, 11:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg