Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Need php-cli, not in ports

Discussion in 'General Discussion' started by hariskhan, Jan 25, 2007.

  1. hariskhan

    hariskhan Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    166
    Hello people

    I need php-cli binary to run php page in crontab. Its not available as seperate package under ports. Neither has it been installed by cpanel. I currently have php 4.4.4 on fbsd 5.4 with ports updated with portsnap everyday.

    How can I get php-cli? Need help
     
  2. hariskhan

    hariskhan Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    166
    Found out...

    Hello,

    found out, I can go to lang/php4 under ports and try make config. Make config shows CLI already checked.

    If I build and install this version of php, will it break the version cpanel has installed?
     
    #2 hariskhan, Jan 25, 2007
    Last edited: Jan 25, 2007
  3. hariskhan

    hariskhan Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    166
    cpanel - php install?

    Does the cpanel version of php4 have option for cli in it?

    Its not there as far as I can see with /scripts/easyapache
     
    #3 hariskhan, Jan 25, 2007
    Last edited: Jan 25, 2007
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    It gets built by default and placed in:

    /usr/local/bin

    or

    /usr/bin
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. hariskhan

    hariskhan Well-Known Member

    Joined:
    Apr 15, 2004
    Messages:
    146
    Likes Received:
    0
    Trophy Points:
    166
    Nope

    Hello Ken (Ken is it or Kenneth?) and all,

    Didn't find anything under any folder on any of my fbsd servers.

    # l /usr/local/bin/php*;l /usr/bin/php*
    -rwxr-xr-x 1 root wheel 7820790 Oct 2 05:14 /usr/local/bin/php*
    -rwxr-xr-x 1 root wheel 917 Oct 2 05:14 /usr/local/bin/php-config*
    -rwxr-xr-x 1 root wheel 4010 Oct 2 05:14 /usr/local/bin/phpize*
    -rwxr-xr-x 1 root wheel 7821296 Oct 2 05:16 /usr/bin/php*
    -rwxr-xr-x 1 root wheel 905 Oct 2 05:16 /usr/bin/php-config*
    -rwxr-xr-x 1 root wheel 3998 Oct 2 05:16 /usr/bin/phpize*

    # fine / -name "php-cli" returned nothing as well

    How can I get it if I don't already have it?
     
    #5 hariskhan, Jan 25, 2007
    Last edited: Jan 26, 2007
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Either Ken or Kenneth is acceptible.

    The php cli binary built by EasyApache is not named php-cli, it's merely php.
    Code:
    root@mundane [/usr/local/cpanel]# whereis php
    php: /usr/bin/php /usr/lib/php /usr/lib/php.ini /usr/local/bin/php /usr/local/lib/php /usr/local/lib/php.ini /usr/include/php
    root@mundane [/usr/local/cpanel]# whereis php-cli
    php-cli:
    root@mundane [/usr/local/cpanel]# php -v
    PHP 5.2.0 (cli) (built: Dec  4 2006 13:19:28) Copyright (c) 1997-2006 The PHP GroupZend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
    root@mundane [/usr/local/cpanel]# /usr/local/bin/php -v
    PHP 5.2.0 (cli) (built: Dec  4 2006 13:19:28) Copyright (c) 1997-2006 The PHP GroupZend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice