Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Snoopyski on March 01, 2007, 02:19:36 PM

Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: Snoopyski on March 01, 2007, 02:19:36 PM
Hello Everyone,

I see the new SME Server update (7.1.1) on mirror yesterday but when I try to update my server I get those error:

Quote

Error: Missing Dependency: php = 5.1.6-1.2.1.centos is needed by package php-imap
Error: Missing Dependency: php is needed by package pear-date
Error: Missing Dependency: php is needed by package pear-mail
Error: Missing Dependency: php >= 4.0.1 is needed by package e-smith-php
Error: Missing Dependency: php >= 4.3.0 is needed by package ingo-h3
Error: Missing Dependency: php is needed by package e-smith-ingo
Error: Missing Dependency: php is needed by package pear-mail_mime
Error: Missing Dependency: php is needed by package e-smith-imp
Error: Missing Dependency: php = 5.1.6-1.2.1.centos is needed by package php-gd
Error: Missing Dependency: php = 5.1.6-1.2.1.centos is needed by package php-ldap
Error: Missing Dependency: php is needed by package pear-log
Error: Missing Dependency: php >= 5.1.0-1 is needed by package php-pear
Error: Missing Dependency: php = 5.1.6-1.2.1.centos is needed by package php-mysql
Error: Missing Dependency: php is needed by package pear-file
Error: Missing Dependency: php >= 4.3.0 is needed by package imp-h3
Error: Missing Dependency: php >= 4.3.0 is needed by package horde
Error: Missing Dependency: php = 5.1.6-1.2.1.centos is needed by package php-mbstring
Error: Missing Dependency: php >= 4.3.0 is needed by package turba-h3
Error: Missing Dependency: php is needed by package pear-db
Error: Missing Dependency: php = 5.1.6-1.2.1.centos is needed by package php-pdo
Error: Missing Dependency: php = 4.3.9-3.22.3 is needed by package php-domxml
================================================================


Any Idea to update it ?

Thanks and great job  :wink:

Snoopyski
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: william_syd on March 01, 2007, 02:40:00 PM
Code: [Select]
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons \
--exclude=php*


Maybe ?
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: Snoopyski on March 01, 2007, 05:05:28 PM
Hello William_Syd,

Thanks for answer... but no success same error...

It seams to ignore my exclude command !!!

Any other idea ?

Thanks,

Snoopyski
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: cactus on March 01, 2007, 09:42:45 PM
Quote from: "Snoopyski"
Hello William_Syd,

Thanks for answer... but no success same error...

It seams to ignore my exclude command !!!

Any other idea ?

Thanks,

Snoopyski
That is probably because some packages that come with the upgrade depend on php 4.3.9-3.22.3 (see the last line of the dependency list) and therefore require this to be installed all others have a minimal requirement, but somewhere in the list is a package that requires 4.3.0-3.22.3 exactly). I guess the only way is to find out which packages do and try to leave them out... or uninstall MySQL 5 and PHP 5, do the upgrade and run the PHP and MySQL upgrade again... don't forget to cross your fingers :-)
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: william_syd on March 01, 2007, 10:09:58 PM
Start with excluding this
Quote
php-domxml

Don't think it's used with php5.
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: william_syd on March 01, 2007, 10:43:38 PM
Or try
Code: [Select]
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons

Followed by
Code: [Select]
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


The second one may still fail. Try some excludes there.
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: CharlieBrady on March 02, 2007, 01:50:34 AM
Quote from: "Snoopyski"

Any other idea ?


Remove or downgrade your php and mysql rpms.
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: soprom on March 02, 2007, 02:10:24 AM
As a similar situation occured when upgrading 7.0 to 7.1, some threads discussed that problem. Maybe some solutions were found then.
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: william_syd on March 02, 2007, 02:48:18 AM
Maybe..
Code: [Select]
rpm -e --nodeps php-domxml
Then do the update.
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: Snoopyski on March 02, 2007, 12:51:50 PM
Thanks...

But same error !!!

I really don't want to "downgrade" PHP5 and MySQL 5 to 4... I used to aopplication need those version !!! And I think "downgrade" made yum update and "upgrade" again to PHP5 and MySQL 5 was to dangeorous ???

Thanks,

Snoopyski
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: william_syd on March 02, 2007, 01:10:11 PM
Did you ever do anything in regard to this post..

http://forums.contribs.org/index.php?topic=35432.msg155020#msg155020

?
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: william_syd on March 02, 2007, 03:04:47 PM
Ok... try this...

Code: [Select]
yum update smeserver-yum \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


Code: [Select]
signal-event post-upgrade
signal-event reboot


Code: [Select]
db yum_repositories setprop updates Exclude kernel,kernel-smp,mkinitrd,mdadm,initscripts
db yum_repositories setprop base Exclude kernel,kernel-smp,mkinitrd,mdadm,initscripts
db yum_repositories setprop centosplus Exclude kernel,kernel-smp,mkinitrd,mdadm,initscripts
expand-template /etc/yum.conf


Code: [Select]
yum update \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=centosplus \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


I haven't said 'y' yet.
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: william_syd on March 02, 2007, 04:03:26 PM
Don't say yes.. it's bad.

Maybe more exclusions from centosplus
Code: [Select]
db yum_repositories setprop centosplus Exclude kernel,kernel-smp,mkinitrd,mdadm,initscripts,perl-suidperl,perl
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: cjensen on March 02, 2007, 07:46:42 PM
Quote from: "Snoopyski"
I really don't want to "downgrade" PHP5 and MySQL 5 to 4... I used to aopplication need those version !!! And I think "downgrade" made yum update and "upgrade" again to PHP5 and MySQL 5 was to dangeorous ???


This is why upgrades of core packages such as these is not a good Idea.  Eventually you will want to upgrade and that is when things break.  Yum is a wonderful tool but it makes things messy if you upgrade things around it ;-) In the 'long-term' Charlie Brady's suggestion would be best.

Craig
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: Snoopyski on March 02, 2007, 10:04:16 PM
OK... Let's see !!!

I "downgrade" with those command (from http://smeserver.pialasse.com) web site...

Step1:

***REMOVE DUNGOG USERS PANEL CONTRIBS***

Step2:

Code: [Select]

service httpd-e-smith stop
rpm -e --nodeps php-mysql php-imap php-pdo php-gd php-mbstring php-pear php-ldap php-xml php
yum install php php-mysql php-imap php-domxml php-gd php-pear php-ldap php-mbstring
rm /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/20loadModule80PHP
rm /etc/e-smith/templates-custom/etc/php.ini/50PathsDirectories
expand-template /etc/php.ini
expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith start


Step 3:

Code: [Select]

yum update
signal-event post-upgrade
signal-event reboot


And Now I see the new beautifull console menu of 7.1.1 !!!

BUT now I'm not able to go in server-manager AND in console mode Access to Server-manager (lynx) = access denied !!!

Any idea ????

Thanks,

Snoopyski[/quote]
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: Snoopyski on March 02, 2007, 10:38:42 PM
OK OK OK

Now it's work !!!

I fix my last "BUG" with this:

http://bugs.contribs.org/show_bug.cgi?id=2035

Thanks everybody !

Snoopyski

PS... NOW I NEED TO PUT BACK PHP5 AND MYSQL5 :?
Title: How to upgrade to 7.1.1 if have PHP5 + MySQL5
Post by: william_syd on March 02, 2007, 11:10:24 PM
Quote
PS... NOW I NEED TO PUT BACK PHP5 AND MYSQL5 Confused


Don't use the old wiki how-to.

It should be something simpler like
Code: [Select]
db yum_repositories setprop centosplus Exclude kernel,kernel-smp,mkinitrd,mdadm,initscripts,perl*,httpd,mod_ssl
expand-template /etc/yum.conf

Code: [Select]
yum update php mysql \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=centosplus \
--enablerepo=smeaddons
Code: [Select]

signal-event post-upgrade
signal-event reboot

Code: [Select]
mysql_upgrade
The above step may fail.. just continue on.
Code: [Select]

cat /usr/share/mysql/mysql_fix_privilege_tables.sql | /usr/bin/mysql \
--force \
--user=root \
--host=localhost \
--database=mysql
Code: [Select]

signal-event post-upgrade
signal-event reboot