Results 1 to 13 of 13

Thread: enable php-CLI

  1. #1
    Join Date
    Jan 2011
    Posts
    99

    enable php-CLI

    hi

    i have install some script in me server and i need to enable php-CLI, how i can do that?

    my PHP Version is 5.2.9

  2. #2
    What OS are you using?

  3. #3
    Join Date
    Jan 2011
    Posts
    99
    centos 5.5

  4. #4
    Try yum install php-cli

  5. #5
    Join Date
    Jan 2011
    Posts
    99
    i get this


    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    No package php-cli available.
    Nothing to do

  6. #6
    Do you have cpanel installed? If so php* is on the yum ignore list. If you have cpanel installed the php cli command should already be there.

  7. #7
    Join Date
    Jan 2011
    Posts
    99
    yes i have cpanel

    how i can see if there cli??? in php info is not show it.

  8. #8
    Just type "php" at the command line.

  9. #9
    Join Date
    Jan 2011
    Posts
    99
    i do that ...how long takes to give result ?? im waiting ~20 minute

  10. #10
    If it does anything besides say "command not found" that means php is already installed. Try php -v.

  11. #11
    Join Date
    Jan 2011
    Posts
    99
    php -v
    PHP 5.2.9 (cli) (built: Mar 8 2011 07:41:35)
    Copyright (c) 1997-2009 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies


    that means i have php-cli i guess...

  12. #12
    Yeah you did all along. I didn't realize you were using cpanel.

  13. #13
    Join Date
    Jan 2011
    Posts
    99
    thank you very much for your help

Similar Threads

  1. PHP CLI
    By koky_cola in forum Hosting Security and Technology
    Replies: 11
    Last Post: 04-27-2010, 01:04 PM
  2. php cli keeps timing out
    By Skeptical in forum Hosting Security and Technology
    Replies: 8
    Last Post: 03-24-2009, 12:21 PM
  3. php passthru() works from PHP CLI but not web
    By renegadeavenger in forum Hosting Security and Technology
    Replies: 1
    Last Post: 11-16-2008, 02:03 AM
  4. PHP CLI
    By dyrer in forum Hosting Security and Technology
    Replies: 1
    Last Post: 11-24-2007, 04:23 PM
  5. php cli
    By calabiyau in forum Hosting Security and Technology
    Replies: 1
    Last Post: 06-23-2007, 09:54 AM

Posting Permissions

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