Results 1 to 13 of 13
Thread: enable php-CLI
-
04-09-2011, 08:28 AM #1Junior Guru Wannabe
- 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
-
04-09-2011, 08:39 AM #2Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
What OS are you using?
-
04-09-2011, 08:43 AM #3Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 99
centos 5.5
-
04-09-2011, 08:45 AM #4Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
Try yum install php-cli
-
04-09-2011, 08:52 AM #5Junior Guru Wannabe
- 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
-
04-09-2011, 08:54 AM #6Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
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.
-
04-09-2011, 08:57 AM #7Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 99
yes i have cpanel
how i can see if there cli??? in php info is not show it.
-
04-09-2011, 08:59 AM #8Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
Just type "php" at the command line.
-
04-09-2011, 09:08 AM #9Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 99
i do that ...how long takes to give result ?? im waiting ~20 minute
-
04-09-2011, 09:51 AM #10Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
If it does anything besides say "command not found" that means php is already installed. Try php -v.
-
04-09-2011, 10:02 AM #11Junior Guru Wannabe
- 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...
-
04-09-2011, 10:05 AM #12Disabled
- Join Date
- Jul 2009
- Posts
- 2,195
Yeah you did all along. I didn't realize you were using cpanel.
-
04-09-2011, 10:14 AM #13Junior Guru Wannabe
- Join Date
- Jan 2011
- Posts
- 99
thank you very much for your help
Similar Threads
-
PHP CLI
By koky_cola in forum Hosting Security and TechnologyReplies: 11Last Post: 04-27-2010, 01:04 PM -
php cli keeps timing out
By Skeptical in forum Hosting Security and TechnologyReplies: 8Last Post: 03-24-2009, 12:21 PM -
php passthru() works from PHP CLI but not web
By renegadeavenger in forum Hosting Security and TechnologyReplies: 1Last Post: 11-16-2008, 02:03 AM -
PHP CLI
By dyrer in forum Hosting Security and TechnologyReplies: 1Last Post: 11-24-2007, 04:23 PM -
php cli
By calabiyau in forum Hosting Security and TechnologyReplies: 1Last Post: 06-23-2007, 09:54 AM