Portal Home > Knowledgebase > Articles Database > enable php-CLI


enable php-CLI




Posted by thiva78, 04-09-2011, 08:28 AM
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

Posted by Squidix - SamBarrow, 04-09-2011, 08:39 AM
What OS are you using?

Posted by thiva78, 04-09-2011, 08:43 AM
centos 5.5

Posted by Squidix - SamBarrow, 04-09-2011, 08:45 AM
Try yum install php-cli

Posted by thiva78, 04-09-2011, 08:52 AM
i get this Excluding Packages in global exclude list Finished Setting up Install Process No package php-cli available. Nothing to do

Posted by Squidix - SamBarrow, 04-09-2011, 08:54 AM
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.

Posted by thiva78, 04-09-2011, 08:57 AM
yes i have cpanel how i can see if there cli??? in php info is not show it.

Posted by Squidix - SamBarrow, 04-09-2011, 08:59 AM
Just type "php" at the command line.

Posted by thiva78, 04-09-2011, 09:08 AM
i do that ...how long takes to give result ?? im waiting ~20 minute

Posted by Squidix - SamBarrow, 04-09-2011, 09:51 AM
If it does anything besides say "command not found" that means php is already installed. Try php -v.

Posted by thiva78, 04-09-2011, 10:02 AM
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...

Posted by Squidix - SamBarrow, 04-09-2011, 10:05 AM
Yeah you did all along. I didn't realize you were using cpanel.

Posted by thiva78, 04-09-2011, 10:14 AM
thank you very much for your help



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
SQl Injection? (Views: 760)
PHP 5 xor bug (Views: 686)
is this DDOS ? (Views: 682)