Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    147

    Lightbulb Need php-cli, not in ports

    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. #2
    Member
    Join Date
    Apr 2004
    Posts
    147

    Question 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?
    Last edited by hariskhan; 01-25-2007 at 06:39 AM.

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    147

    Question 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
    Last edited by hariskhan; 01-25-2007 at 06:40 AM.

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

    Root Administrator

    Default

    It gets built by default and placed in:

    /usr/local/bin

    or

    /usr/bin

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    147

    Question 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?
    Last edited by hariskhan; 01-26-2007 at 05:14 AM.

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

    Root Administrator

    Default

    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

Similar Threads & Tags
Similar threads

  1. PHP option only for CLI
    By Esky in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-18-2011, 11:52 AM
  2. PHP cli not working for 5.3.3
    By Mamsaac in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-18-2010, 01:40 AM
  3. Php Cli & Cpanel
    By metroservers in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-21-2008, 06:34 PM
  4. Problems with php cli :(
    By maxymas in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-20-2007, 06:44 AM
  5. PHP cli upgrade
    By ethank in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-23-2005, 11:57 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube