Rolling Back Version

Support/Development for PHP
KrazyBob
Forum Regular
Forum Regular
Posts: 310
Joined: Mon Mar 19, 2007 3:47 pm

Rolling Back Version

Unread post by KrazyBob »

I have a dedicated server customer running Plesk 9.3 on a Virtuozzo VPS that updated PHP from 5.1.6 to 5.2.12 and broke custom scripts in the process. I've never had to roll PHP back and don't know how. Do I just yum remove php* and them yum install php*?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Rolling Back Version

Unread post by scott »

the command you're looking for is: yum downgrade <packaename>
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Rolling Back Version

Unread post by nobody »

When I run this then I got this error

Code: Select all

Transaction Check Error:
  file /usr/share/man/man1/php.1.gz from install of php-cli-5.2.17-1.el5.art.i386 conflicts with file from package php-cli-5.3.6-2.el5.art.x86_64
  file /etc/php.ini from install of php-common-5.2.17-1.el5.art.i386 conflicts with file from package php-common-5.3.6-2.el5.art.x86_64

And it did nothing :(
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
d8_compiler
New Forum User
New Forum User
Posts: 3
Joined: Fri Apr 08, 2011 4:25 am
Location: Germany

Re: Rolling Back Version

Unread post by d8_compiler »

nobody wrote:When I run this then I got this error

Code: Select all

Transaction Check Error:
  file /usr/share/man/man1/php.1.gz from install of php-cli-5.2.17-1.el5.art.i386 conflicts with file from package php-cli-5.3.6-2.el5.art.x86_64
  file /etc/php.ini from install of php-common-5.2.17-1.el5.art.i386 conflicts with file from package php-common-5.3.6-2.el5.art.x86_64

And it did nothing :(

same here. what does a transaction check error mean ?

Code: Select all

Dependencies Resolved

=====================================================================================================================================================================================================
 Package                                             Arch                                     Version                                                   Repository                              Size
=====================================================================================================================================================================================================
Updating:
 fail2ban                                            noarch                                   0.8.4-23.el5                                              epel                                   135 k
 inotify-tools                                       x86_64                                   3.14-1.el5                                                epel                                    49 k
 lua                                                 x86_64                                   5.1.4-4.el5                                               epel                                   229 k
 memcached                                           x86_64                                   1.4.5-2.el5.remi                                          remi                                    73 k
 mysql                                               x86_64                                   5.1.56-1.el5.remi                                         remi                                   1.1 M
 mysql-libs                                          x86_64                                   5.1.56-1.el5.remi                                         remi                                   1.7 M
 mysql-server                                        x86_64                                   5.1.56-1.el5.remi                                         remi                                    11 M
 perl-Error                                          noarch                                   1:0.17010-1.el5                                           epel                                    26 k
 perl-IO-Interface                                   x86_64                                   1.03-1.el5.2                                              epel                                    28 k
 perl-Text-Iconv                                     x86_64                                   1.4-5.el5                                                 epel                                    19 k
 php                                                 x86_64                                   5.3.6-1.el5.remi                                          remi                                   1.4 M
 php-cli                                             x86_64                                   5.3.6-1.el5.remi                                          remi                                   2.6 M
 php-common                                          x86_64                                   5.3.6-1.el5.remi                                          remi                                   972 k
 php-devel                                           x86_64                                   5.3.6-1.el5.remi                                          remi                                   623 k
 php-gd                                              x86_64                                   5.3.6-1.el5.remi                                          remi                                   208 k
 php-imap                                            x86_64                                   5.3.6-1.el5.remi                                          remi                                    87 k
 php-mbstring                                        x86_64                                   5.3.6-1.el5.remi                                          remi                                   2.3 M
 php-mysql                                           x86_64                                   5.3.6-1.el5.remi                                          remi                                   158 k
 php-pdo                                             x86_64                                   5.3.6-1.el5.remi                                          remi                                   117 k
 php-pear                                            noarch                                   1:1.9.2-3.el5.remi                                        remi                                   434 k
 php-soap                                            x86_64                                   5.3.6-1.el5.remi                                          remi                                   276 k
 php-xml                                             x86_64                                   5.3.6-1.el5.remi                                          remi                                   221 k
 ruby-mysql                                          x86_64                                   2.7.3-1.el5                                               epel                                    46 k
Installing for dependencies:
 libedit                                             x86_64                                   2.11-2.20080712cvs.el5                                    epel                                    80 k
 shorewall                                           noarch                                   4.0.15-1.el5                                              epel                                   9.2 k
 shorewall-common                                    noarch                                   4.0.15-1.el5                                              epel                                   232 k
 shorewall-perl                                      noarch                                   4.0.15-1.el5                                              epel                                   137 k
 shorewall-shell                                     noarch                                   4.0.15-1.el5                                              epel                                    76 k

Transaction Summary
=====================================================================================================================================================================================================
Install       5 Package(s)
Upgrade      23 Package(s)

Total size: 24 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /etc/php.ini from install of php-common-5.3.6-1.el5.remi.x86_64 conflicts with file from package php-common-5.2.17-1.el5.art.i386
  file /usr/share/man/man1/php.1.gz from install of php-cli-5.3.6-1.el5.remi.x86_64 conflicts with file from package php-cli-5.2.17-1.el5.art.i386

Error Summary
-------------
User avatar
JnascECSI
Forum Regular
Forum Regular
Posts: 306
Joined: Mon Apr 14, 2008 8:29 am
Location: Rhode Island

Re: Rolling Back Version

Unread post by JnascECSI »

EPIC Fail,

Code: Select all

Last login: Sun Apr 10 08:54:02 2011 from XXXXX.XXXXXXXXXXXXX.com
[XXXXXXX@ecs-1 ~]# yum downgrade php
Loaded plugins: fastestmirror
Setting up Downgrade Process
Loading mirror speeds from cached hostfile
 * atomic: www6.atomicorp.com
 * base: mirror.ash.fastserv.com
 * extras: ftp.osuosl.org
 * updates: mirror.vcu.edu
Excluding Packages from Plesk Server Administrator
Finished
Resolving Dependencies
--> Running transaction check
---> Package php.i386 0:5.2.17-1.el5.art set to be updated
--> Processing Dependency: php-common = 5.2.17-1.el5.art for package: php
--> Processing Dependency: php-cli = 5.2.17-1.el5.art for package: php
---> Package php.x86_64 0:5.2.17-1.el5.art set to be updated
---> Package php.i386 0:5.3.6-2.el5.art set to be erased
--> Processing Dependency: php = 5.3.6-2.el5.art for package: php-devel
---> Package php.x86_64 0:5.3.6-2.el5.art set to be erased
--> Running transaction check
---> Package php-cli.i386 0:5.2.17-1.el5.art set to be updated
---> Package php-common.i386 0:5.2.17-1.el5.art set to be updated
---> Package php-devel.x86_64 0:5.3.6-2.el5.art set to be erased
--> Processing Dependency: php-devel for package: php-ioncube-loader
--> Running transaction check
---> Package php-ioncube-loader.x86_64 1:4.0.5-1.el5.art set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch       Version                  Repository     Size
================================================================================
Downgrading:
 php                    i386       5.2.17-1.el5.art         atomic        1.2 M
 php                    x86_64     5.2.17-1.el5.art         atomic        1.3 M
Installing for dependencies:
 php-cli                i386       5.2.17-1.el5.art         atomic        2.4 M
 php-common             i386       5.2.17-1.el5.art         atomic        279 k
Removing for dependencies:
 php-devel              x86_64     5.3.6-2.el5.art          installed     3.1 M
 php-ioncube-loader     x86_64     1:4.0.5-1.el5.art        installed     3.7 M

Transaction Summary
================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)
Remove        2 Package(s)
Reinstall     0 Package(s)
Downgrade     2 Package(s)

Total size: 5.2 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /usr/share/man/man1/php.1.gz from install of php-cli-5.2.17-1.el5.art.i386 conflicts with file from package php-cli-5.3.6-2.el5.art.x86_64
  file /etc/php.ini from install of php-common-5.2.17-1.el5.art.i386 conflicts with file from package php-common-5.3.6-2.el5.art.x86_64

Error Summary
-------------
After updating to php 5.3.6 we are having issues and have some sites that are going nuts. I tried to downgrade also but it gave me the same error above and can't get past it no matter what i try.

Does anyone have a tip or help how to get this downgrade completed to 5.2.17 art? I have 15 sites that are down that our banking partners use and i'm in a pinch to get back to 5.2.17 before all hell breaks loose.
James Nascimento
Chief Information Officer
East Commerce Solutions, Inc.
22 Morris Lane
East Providence, RI 02914
Ph. 800-527-5395 x263
Fax. 888-999-5891
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Rolling Back Version

Unread post by scott »

you're mixing i386 & x86_64 there. Thats the problem, Id downgrade the old fashioned way, rpm --oldpackage -Uvh <packagename>
User avatar
JnascECSI
Forum Regular
Forum Regular
Posts: 306
Joined: Mon Apr 14, 2008 8:29 am
Location: Rhode Island

Re: Rolling Back Version

Unread post by JnascECSI »

Scott,
Am i correct with the command below? this is a 64 bit server centos 5.6.

rpm --php.x86_64-5.2.17-1.el5.art -Uvh php
James Nascimento
Chief Information Officer
East Commerce Solutions, Inc.
22 Morris Lane
East Providence, RI 02914
Ph. 800-527-5395 x263
Fax. 888-999-5891
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Rolling Back Version

Unread post by scott »

what you want is: rpm --oldpackage -Uvh <packagename>
User avatar
JnascECSI
Forum Regular
Forum Regular
Posts: 306
Joined: Mon Apr 14, 2008 8:29 am
Location: Rhode Island

Re: Rolling Back Version

Unread post by JnascECSI »

Tried it but keep getting the following below and if i try removing php all together to start from scratch it want s to remove psa and components.

[XXXXX@ecs-1 ~]# rpm --oldpackage -Uvh php-5.2.17-1.el5.art
error: open of php-5.2.17-1.el5.art failed: No such file or directory
[XXXXX@ecs-1 ~]#
James Nascimento
Chief Information Officer
East Commerce Solutions, Inc.
22 Morris Lane
East Providence, RI 02914
Ph. 800-527-5395 x263
Fax. 888-999-5891
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Rolling Back Version

Unread post by scott »

yeah youve got to download it first
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Rolling Back Version

Unread post by nobody »

Right now things seem to be ok for me. At least for now. And offcourse we should keep a follow up pace with evolution.
But I wonder since there were so many issues with php 5.3 why did we upgrade it guys ? Probably no pain no change in this case ? haha
After what happened with the php I shutdown the yum daemon ... Seems we must be very carefull when it comes to crucial updates.
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
User avatar
JnascECSI
Forum Regular
Forum Regular
Posts: 306
Joined: Mon Apr 14, 2008 8:29 am
Location: Rhode Island

Re: Rolling Back Version

Unread post by JnascECSI »

Well i managed to get back to 5.2, i ended up having to just remove php all together and then re-install php 5.2 piece by piece. Quick note to anyone that has to go back make sure you exclude php in the repo first. that was the main problem i think that was killing me after scott helped be out. everytime i tried to install 5.2 it would go nuts about 5.3 already being available as a update.
James Nascimento
Chief Information Officer
East Commerce Solutions, Inc.
22 Morris Lane
East Providence, RI 02914
Ph. 800-527-5395 x263
Fax. 888-999-5891
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Rolling Back Version

Unread post by nobody »

JnascECSI wrote:Well i managed to get back to 5.2, i ended up having to just remove php all together and then re-install php 5.2 piece by piece. Quick note to anyone that has to go back make sure you exclude php in the repo first. that was the main problem i think that was killing me after scott helped be out. everytime i tried to install 5.2 it would go nuts about 5.3 already being available as a update.
Why don't you write a step by step tutorial so others don't get stuck in the same mistakes ? :)
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
Post Reply