Forums / Install & configuration / centOS and php cli

centOS and php cli

Author Message

laurent le cadet

Friday 26 September 2008 9:01:40 am

Hi,

I have a server with centOS Linux 4.4 and I need also php cli to deal with cronjobs.
It doesn't seems to be compatible.

Could someone tell me if there is no solution?

Regards.

Laurent

Guillaume Kulakowski

Friday 26 September 2008 9:36:53 am

Can you paste the result of this command line :

rpm -qa | grep php

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Nicolas Lescure

Friday 26 September 2008 11:17:21 am

I can't give you the exact solution, but we have a centos OS 4 server with the phpcli enabled, and it works fine.

laurent le cadet

Sunday 28 September 2008 11:23:22 pm

To Guillaume,

Here is the result of the command line:

php-debuginfo-4.4.7-1.sfh
php-domxml-4.4.7-1.sfh
php-mbstring-4.4.7-1.sfh
php-odbc-4.4.7-1.sfh
php-xlt-4.4.7-1.sfh
php-pear-4.4.7-1.sfh
php-devel-4.4.7-1.sfh
php-ldap-4.4.7-1.sfh
php-mycrypt-4.4.7-1.sfh
php-mysql-4.4.7-1.sfh
php-pgsql-4.4.7-1.sfh
php-xmlrpc-4.4.7-1.sfh
php-4.4.7-1.sfh
php-imap-4.4.7-1.sfh
php-mhash-4.4.7-1.sfh
php-snmp-4.4.7-1.sfh
php-eaccelerator-4.4.7-1.sfh

laurent le cadet

Sunday 28 September 2008 11:24:35 pm

to Nicolas,

This bring me hope ;)

Guillaume Kulakowski

Sunday 28 September 2008 11:35:30 pm

@Laurent > .sfh isn't an official CentOS php version... And, you haven't the php-cli packet.

On CentOS 5 with php5 (unofficial):

llaumgui@spb-box ~> rpm -qa | grep php                                     8:42
php-pear-Mail-Mime-1.4.0-1.el5.centos
php-common-5.2.6-1.el5.remi
php-gd-5.2.6-1.el5.remi
php-ldap-5.2.6-1.el5.remi
phpMyAdmin-2.11.9.2-1.el5
php-pear-Net-Socket-1.0.8-1.el5.centos
php-pdo-5.2.6-1.el5.remi
php-5.2.6-1.el5.remi
php-xml-5.2.6-1.el5.remi
php-mcrypt-5.2.6-1.el5.remi
php-mbstring-5.2.6-1.el5.remi
php-pear-Auth-SASL-1.0.2-4.el5.centos
php-pear-DB-1.7.13-1.el5.centos
php-eaccelerator-0.9.5.2-2.el5.remi
php-cli-5.2.6-1.el5.remi
php-mysql-5.2.6-1.el5.remi
php-pear-Net-SMTP-1.3.1-1.el5
php-pear-1.7.2-2.el5.remi

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

laurent le cadet

Sunday 28 September 2008 11:40:13 pm

Guillaume,

The problem is that I don't want to upgrade this server with it's 22 ezP 3.10 sites.
Is there a solution to enabled php Cli with this CentOS ?

Guillaume Kulakowski

Monday 29 September 2008 12:32:51 am

Find a packet like php-cli-4.4.7-1.sfh

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"