Results 1 to 3 of 3

Thread: php as cgi

  1. #1
    Join Date
    Apr 2006

    php as cgi


    I have recompiled php as cgi moudle but php -v command shows

    [[email protected] ~]# php -v
    PHP 4.4.8 (cli) (built: Jan 3 2008 18:17:12)

    (cli) ?

    any idea ?

  2. #2
    Join Date
    Apr 2002
    This depends on which php binary you are actually accessing.

    Do a:

    which php

    This will show you the complete path of the php binary you are accessing.

    I'm going to go out on a limb here and guess that this will say /usr/local/bin/php.

    Now do a:

    which -a php

    This will show all of the php binaries that are accessible in your defined paths. /usr/local/bin/php will probably be reported at the time (or whatever the results of the first command is). Try some of the others, giving the full path. I suspect that /usr/bin/php is the CGI version of your PHP install. Doing:

    /usr/bin/php -v

    will likely yield a cgi result.

  3. #3
    Join Date
    Apr 2006
    Thanks for the info i appreciate it

    [[email protected] cron.daily]# /usr/bin/php -v
    PHP 4.4.8 (cgi) (built: Jan 3 2008 18:19:06)

Posting Permissions

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