apt-get lists php-cli

Peter Laws

Verified User
Joined
Sep 13, 2008
Messages
1,747
Location
London UK
Silly question, but will an apt-get upgrade be ok, it lists :
php-pear php5-cli php5-common php5-dev
I swear I've never seen php in there before on servers I upgrade regulary so I'm a bit weiry.

TIA
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,209
Location
LT, EU
Please post the output of:
Code:
dpkg -l | grep php
 

Peter Laws

Verified User
Joined
Sep 13, 2008
Messages
1,747
Location
London UK
~# dpkg -l | grep php
ii php-config 1.10.11-1 Your configuration's swiss-army knife
ii php-pear 5.2.6.dfsg.1-1+lenny8 PEAR - PHP Extension and Application Repository
ii php5-cli 5.2.6.dfsg.1-1+lenny8 command-line interpreter for the php5 scripting language
ii php5-common 5.2.6.dfsg.1-1+lenny8 Common files for packages built from the php5 source
ii php5-dev 5.2.6.dfsg.1-1+lenny8 Files for PHP5 module development
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,209
Location
LT, EU
So, remove PHP packages using "dpkg -r package" and run "apt-get upgrade" again :) Good luck!
 

Peter Laws

Verified User
Joined
Sep 13, 2008
Messages
1,747
Location
London UK
This is weird......

:~# dpkg -r php5-cli
dpkg: dependency problems prevent removal of php5-cli:
php-pear depends on php5-cli | php4-cli; however:
Package php5-cli is to be removed.
Package php4-cli is not installed.
dpkg: error processing php5-cli (--remove):
dependency problems - not removing
Errors were encountered while processing:
php5-cli
:~# dpkg --get-selections | grep php
php-config install
php-pear install
php5-cli deinstall
php5-common install
php5-dev install
Maybe I did install php-pear at some point?
 

Peter Laws

Verified User
Joined
Sep 13, 2008
Messages
1,747
Location
London UK
Thing is, I'm sure I installed it for a reason..... What, I fogot lol!

If I did let it install php-cli, it won't affect mod_apache I presume(?), but it may stuff up any cron stuff that uses the php binary?
 
Top