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"

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:55:32
Script start
Timing: Jan 19 2025 04:55:32
Module start 'layout'
Timing: Jan 19 2025 04:55:32
Module start 'content'
Timing: Jan 19 2025 04:55:33
Module end 'content'
Timing: Jan 19 2025 04:55:33
Script end

Main resources:

Total runtime1.3632 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1563152.6250
Module start 'layout' 0.00570.0025 741.781339.4453
Module start 'content' 0.00821.3535 781.2266641.2266
Module end 'content' 1.36180.0014 1,422.453120.7969
Script end 1.3632  1,443.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2125160.0002
Check MTime0.00120.0889160.0001
Mysql Total
Database connection0.00080.058810.0008
Mysqli_queries1.281694.0124740.0173
Looping result0.00080.0562720.0000
Template Total1.325797.220.6629
Template load0.00210.150520.0010
Template processing1.323697.097720.6618
Template load and register function0.00020.012410.0002
states
state_id_array0.00110.080710.0011
state_identifier_array0.00130.092320.0006
Override
Cache load0.00160.1208390.0000
Sytem overhead
Fetch class attribute can translate value0.00050.037930.0002
Fetch class attribute name0.00130.0966110.0001
XML
Image XML parsing0.00490.356530.0016
class_abstraction
Instantiating content class attribute0.00000.0023160.0000
General
dbfile0.00580.4245290.0002
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs