Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2007
    Posts
    9

    Default php configuration in WHM and php cgi

    With the present version of easyapache if two verions of php are configured to run on the server then one of them is made to run as CGI where the CGI binary is found in the folder
    /usr/local/cpanel/cgi-sys/ and picking it is done through a Action directive in php.conf

    Now my question is where is this CGI binary brought into cgi-sys folder from ? If we manually compile php then both a CGI binary and cli binary are installed and we can copy the CGI binary to cgi-bin/cgi-sys if we want to. But how does cPanel get to do
    this ? I don't see any CGI binary installed in the folders where php is installed.

  2. #2
    Member
    Join Date
    Oct 2007
    Posts
    9

    Default

    I am trying to find how it happens, but I am unable to. Can the cPanel guys shed some light on this please ??

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Here's the listing of where the binaries are installed, from a recent build using EasyApache and installing both major versions of PHP:

    Code:
    root@mundane [~]# ls -l /usr/bin/php*
    -rwxr-xr-x  1 root root 13699280 Oct  6 13:04 /usr/bin/php*
    lrwxrwxrwx  1 root root       23 Oct  6 13:07 /usr/bin/php4 -> /usr/local/php4/bin/php*
    -rwxr-xr-x  1 root root  5083566 Aug 14  2007 /usr/bin/php-4*
    lrwxrwxrwx  1 root root       17 Oct  6 13:07 /usr/bin/php4-cgi -> /usr/php4/bin/php*
    lrwxrwxrwx  1 root root       23 Oct  6 13:07 /usr/bin/php4-cli -> /usr/local/php4/bin/php*
    lrwxrwxrwx  1 root root       18 Oct  6 13:07 /usr/bin/php5 -> /usr/local/bin/php*
    lrwxrwxrwx  1 root root       12 Oct  6 13:07 /usr/bin/php5-cgi -> /usr/bin/php*
    lrwxrwxrwx  1 root root       18 Oct  6 13:07 /usr/bin/php5-cli -> /usr/local/bin/php*
    lrwxrwxrwx  1 root root       12 Oct  6 13:07 /usr/bin/php-cgi -> /usr/bin/php*
    lrwxrwxrwx  1 root root       18 Oct  6 13:07 /usr/bin/php-cli -> /usr/local/bin/php*
    -rwxr-xr-x  1 root root     2836 Oct  6 13:04 /usr/bin/php-config*
    -rwxr-xr-x  1 root root     4172 Oct  6 13:04 /usr/bin/phpize*

Similar Threads & Tags
Similar threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-22-2011, 09:55 AM
  2. Replies: 12
    Last Post: 07-18-2011, 02:10 PM
  3. php.ini EZconfig (PHP configuration editor)
    By dylanu2010 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-24-2010, 02:31 AM
  4. suPHP requires PHP w/ CGI or PHP as CGI?
    By fkatzenb in forum Optimization
    Replies: 5
    Last Post: 01-01-2010, 05:47 AM
  5. suPHP requires PHP w/ CGI or PHP as CGI?
    By fkatzenb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-31-2009, 05:47 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube