#1 (permalink)  
Old 01-25-2007, 06:15 AM
Registered User
 
Join Date: Apr 2004
Posts: 147
hariskhan
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-25-2007, 06:25 AM
Registered User
 
Join Date: Apr 2004
Posts: 147
hariskhan
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-25-2007, 06:30 AM
Registered User
 
Join Date: Apr 2004
Posts: 147
hariskhan
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-25-2007, 08:59 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
It gets built by default and placed in:

/usr/local/bin

or

/usr/bin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-26-2007, 12:43 AM
Registered User
 
Join Date: Apr 2004
Posts: 147
hariskhan
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-26-2007, 08:59 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:24 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc