Problems uninstalling (and re-installing) PHP on CentOS 6

General support questions

Problems uninstalling (and re-installing) PHP on CentOS 6

Postby redhat19 » 2012/08/23 14:32:23

Hi all,

I run CentOS 6.2 (upgraded to 6.3) on a Virtual private server (Linode)
Full details of my server (via getinfo.sh) is here: http://pastebin.com/abRCN5sG

I am trying to install the CentOS php package
(..as I have been having issues getting PHP to work correctly on our server. See forum posts in which I have been trying to seek help in solving the issue:
http://forum.linode.com/viewtopic.php?f ... 360#p53360
and
http://www.linuxquestions.org/questions ... ost4761047
I was advised from here to get help from the CentOS forums..so I am new here )

. I have removed the previously installed PHP package but I am now having difficulty installing PHP.
See the screen output below:

Code: Select all
[root@myserver]# yum erase php
Loaded plugins: fastestmirror, security Setting up Remove Process
No Match for argument: php
Loading mirror speeds from cached hostfile
* base: mirrors.coreix.net
* epel: mirror01.th.ifl.net
* extras: mirrors.coreix.net
* updates: mirrors.coreix.net Package(s) php available, but not installed.
No Packages marked for removal


When I try to install with Yum, I get:
Code: Select all
[root@myserver1]# yum install php
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.for.me.uk
 * epel: mirror01.th.ifl.net
 * extras: mirror.for.me.uk
 * updates: mirror.for.me.uk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Processing Dependency: php-cli = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Finished Dependency Resolution
Error: Package: php-5.3.3-14.el6_3.i686 (updates)
           Requires: php-common = 5.3.3-14.el6_3
           Installed: php-common-5.4.6-1.el6.remi.i686 (@remi-test)
               php-common = 5.4.6-1.el6.remi
           Available: php-common-5.3.3-3.el6_2.8.i686 (base)
               php-common = 5.3.3-3.el6_2.8
           Available: php-common-5.3.3-14.el6_3.i686 (updates)
               php-common = 5.3.3-14.el6_3
Error: Package: php-5.3.3-14.el6_3.i686 (updates)
           Requires: php-cli = 5.3.3-14.el6_3
           Installed: php-cli-5.4.6-1.el6.remi.i686 (@remi-test)
               php-cli = 5.4.6-1.el6.remi
           Available: php-cli-5.3.3-3.el6_2.8.i686 (base)
               php-cli = 5.3.3-3.el6_2.8
           Available: php-cli-5.3.3-14.el6_3.i686 (updates)
               php-cli = 5.3.3-14.el6_3
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@myserver1]#


When I try to use -skip-broken as suggested, I get:

Code: Select all
[root@myserver1]# yum --skip-broken  install php
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.vooservers.com
 * epel: mirror01.th.ifl.net
 * extras: mirrors.vooservers.com
 * updates: mirrors.vooservers.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Processing Dependency: php-cli = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Finished Dependency Resolution

Packages skipped because of dependency problems:
    php-5.3.3-14.el6_3.i686 from updates
[root@myserver1]#



It would be pertinent to mention that I had enabled remi repository before now and I updated PHP.
I have even tried to re-enable the Remi repository to be able to get PHP reinstalled. but I have not had much success.

I would appreciate any help I can get.

Thanks in advance.
redhat19
 
Posts: 3
Joined: 2012/08/23 07:17:16

Problems uninstalling (and re-installing) PHP on CentOS 6

Postby gerald_clark » 2012/08/23 14:59:39

Installed: php-cli-5.4.6-1.el6.remi.i686 (@remi-test)
php-cli = 5.4.6-1.el6.remi

Remove the installed remi packages.
gerald_clark
 
Posts: 10082
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Problems uninstalling (and re-installing) PHP on CentOS 6

Postby redhat19 » 2012/08/23 15:11:38

Thanks a lot @gerald_clark

I was able to remove the first one but I have difficulty removing the second one

Here's what I have

Code: Select all
[root@myserver1]# yum remove php-cli-5.4.6-1.el6.remi.i686
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package php-cli.i686 0:5.4.6-1.el6.remi will be erased
--> Processing Dependency: php-cli >= 5.1.0-1 for package: 1:php-pear-1.9.4-7.el6.remi.noarch
--> Running transaction check
---> Package php-pear.noarch 1:1.9.4-7.el6.remi will be erased
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-oauth-1.2.2-3.el6.remi.i686
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-memcache-3.0.6-4.el6.remi.i686
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package php-pecl-memcache.i686 0:3.0.6-4.el6.remi will be erased
---> Package php-pecl-oauth.i686 0:1.2.2-3.el6.remi will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch       Version                  Repository      Size
================================================================================
Removing:
 php-cli               i686       5.4.6-1.el6.remi         @remi-test     7.6 M
Removing for dependencies:
 php-pear              noarch     1:1.9.4-7.el6.remi       @remi          2.2 M
 php-pecl-memcache     i686       3.0.6-4.el6.remi         @remi-test     255 k
 php-pecl-oauth        i686       1.2.2-3.el6.remi         @remi-test     227 k

Transaction Summary
================================================================================
Remove        4 Package(s)

Installed size: 10 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing    : php-pecl-memcache-3.0.6-4.el6.remi.i686                      1/4
  Erasing    : php-pecl-oauth-1.2.2-3.el6.remi.i686                         2/4
  Erasing    : 1:php-pear-1.9.4-7.el6.remi.noarch                           3/4
  Erasing    : php-cli-5.4.6-1.el6.remi.i686                                4/4
  Verifying  : php-pecl-oauth-1.2.2-3.el6.remi.i686                         1/4
  Verifying  : php-cli-5.4.6-1.el6.remi.i686                                2/4
  Verifying  : 1:php-pear-1.9.4-7.el6.remi.noarch                           3/4
  Verifying  : php-pecl-memcache-3.0.6-4.el6.remi.i686                      4/4

Removed:
  php-cli.i686 0:5.4.6-1.el6.remi

Dependency Removed:
  php-pear.noarch 1:1.9.4-7.el6.remi
  php-pecl-memcache.i686 0:3.0.6-4.el6.remi
  php-pecl-oauth.i686 0:1.2.2-3.el6.remi

Complete!


For the second one:

Code: Select all
[root@myserver1]# yum remove php-cli = 5.4.6-1.el6.remi
Loaded plugins: fastestmirror, security
Setting up Remove Process
No Match for argument: php-cli
Loading mirror speeds from cached hostfile
 * base: mirrors.vooservers.com
 * epel: mirror01.th.ifl.net
 * extras: mirrors.vooservers.com
 * updates: mirrors.vooservers.com
Package(s) php-cli available, but not installed.
No Match for argument: =
No Match for argument: 5.4.6-1.el6.remi
No Packages marked for removal


I tried to see if I could install PHP using Yum..

Code: Select all
[root@myserver1]# yum install php
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirror.for.me.uk
 * epel: mirror01.th.ifl.net
 * extras: mirror.for.me.uk
 * updates: mirror.for.me.uk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Processing Dependency: php-cli = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Running transaction check
---> Package php.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
---> Package php-cli.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-cli-5.3.3-14.el6_3.i686
--> Finished Dependency Resolution
Error: Package: php-cli-5.3.3-14.el6_3.i686 (updates)
           Requires: php-common = 5.3.3-14.el6_3
           Installed: php-common-5.4.6-1.el6.remi.i686 (@remi-test)
               php-common = 5.4.6-1.el6.remi
           Available: php-common-5.3.3-3.el6_2.8.i686 (base)
               php-common = 5.3.3-3.el6_2.8
           Available: php-common-5.3.3-14.el6_3.i686 (updates)
               php-common = 5.3.3-14.el6_3
Error: Package: php-5.3.3-14.el6_3.i686 (updates)
           Requires: php-common = 5.3.3-14.el6_3
           Installed: php-common-5.4.6-1.el6.remi.i686 (@remi-test)
               php-common = 5.4.6-1.el6.remi
           Available: php-common-5.3.3-3.el6_2.8.i686 (base)
               php-common = 5.3.3-3.el6_2.8
           Available: php-common-5.3.3-14.el6_3.i686 (updates)
               php-common = 5.3.3-14.el6_3
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@myserver1]#


it still didn't work.
How can I remove the second item you pointed out?

Thanks.
redhat19
 
Posts: 3
Joined: 2012/08/23 07:17:16

Re: Problems uninstalling (and re-installing) PHP on CentOS 6

Postby gerald_clark » 2012/08/23 15:20:12

You need to actually read your error messages.

Installed: php-common-5.4.6-1.el6.remi.i686 (@remi-test)

rpm -qa | grep remi
Remove anything listed that is php related.
gerald_clark
 
Posts: 10082
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Problems uninstalling (and re-installing) PHP on CentOS 6

Postby redhat19 » 2012/08/23 16:38:47

Done. Thanks a million @gerald_clark

I'm back to where I started though. PHP not parsing properly.
redhat19
 
Posts: 3
Joined: 2012/08/23 07:17:16

Re: Problems uninstalling (and re-installing) PHP on CentOS 6

Postby TrevorH » 2012/08/23 17:54:31

Having read the linuxquestions thread, first of all, never ever compile from source. If you need to compile from source, stop, think and remember you're doing it wrong :-)

Post the output from the following commands

Code: Select all
rpm -qa php\*
rpm -Va php\*
which php
php -v
User avatar
TrevorH
Forum Moderator
 
Posts: 14626
Joined: 2009/09/24 10:40:56
Location: Brighton, UK


Return to CentOS 6 - General Support

Who is online

Users browsing this forum: Bing [Bot], kray and 19 guests