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"

eZ debug

Timing: Jan 31 2025 01:35:02
Script start
Timing: Jan 31 2025 01:35:02
Module start 'content'
Timing: Jan 31 2025 01:35:02
Module end 'content'
Timing: Jan 31 2025 01:35:03
Script end

Main resources:

Total runtime0.1909 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 587.9297370.2969
Module start 'content' 0.00710.0136 958.22661,009.6563
Module end 'content' 0.02070.1700 1,967.88283,897.6641
Script end 0.1907  5,865.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00442.3028200.0002
Check MTime0.00130.6893200.0001
Mysql Total
Database connection0.00070.391910.0007
Mysqli_queries0.098651.65811410.0007
Looping result0.00120.64421390.0000
Template Total0.169788.910.1697
Template load0.00080.415010.0008
Template processing0.168988.478410.1689
Override
Cache load0.00050.270810.0005
Sytem overhead
Fetch class attribute can translate value0.00170.881810.0017
XML
Image XML parsing0.00040.197010.0004
General
dbfile0.00492.5631200.0002
String conversion0.00000.002130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs