- Fedora -
SOOOO In my last post, I wrote about installing Yum on a Network Solutions Fedora Core 6 VPS server. Unfortunately, doing a “yum update php” didn’t help me update to the latest PHP because 5.1.6 is the only Fedora updated release. I have a fix for that! Check this out.
BACKUP YOUR SERVER FIRST. NO WARRANTY ON THIS FIX.
Before we begin… A couple of things:
1) I have a 64bit Fedora Core 6 VPS server with Plesk installed from Network Solutions that I’m working with. If you need a 32bit make sure you update the urls below respectively.
2) If you receive this error:
Error: Cannot find a valid baseurl for repo: updates
Or another error concerning not being able to reach the update url… then you need to update your repos by following this guide:
http://forums.fedoraforum.org/showthread.php?t=221471
3) If you need help, post below and I’ll help.
Okay now that we got that out of the way. Let’s get started. Here are my steps:
# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/remi-release-6.rpm
# yum --enablerepo=remi update php
It fails with the following error:
Transaction Check Error: file /etc/my.cnf from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/README from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/cp1250.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/cp1251.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/cp1256.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/cp1257.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/cp850.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/cp852.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/cp866.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/dec8.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/geostd8.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/greek.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/hebrew.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/hp8.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/koi8r.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/koi8u.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/latin1.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/latin2.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/latin5.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/latin7.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/macce.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/macroman.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/charsets/swe7.xml from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.1.47-1.fc6.remi conflicts with file from package mysql-5.0.27-1.fc6
Thanks to tons of searching I found: http://forums.famillecollet.com/viewtopic.php?id=130
So let’s try to update mysql first:
# /etc/init.d/mysql stop
# yum --enablerepo=remi update mysql
Now that, that’s complete we can try php update again, and start MySQL:
# /etc/init.d/mysql start
# yum --enablerepo=remi update php
It fails with the following error:
Error: Missing Dependency: php-common = 5.1.6-3.7.fc6 is needed by package php-mbstring
Error: Missing Dependency: php-common = 5.1.6-3.7.fc6 is needed by package php-mysql
Error: Missing Dependency: php-common = 5.1.6-3.7.fc6 is needed by package php-gd
Error: Missing Dependency: php-common = 5.1.6-3.7.fc6 is needed by package php-pdo
Thinking along the same lines as above, I’ll update the php-common first:
# yum --enablerepo=remi update php-common
During the update I see it’s updating PHP. After it’s complete though I try again:
# yum --enablerepo=remi update php
*Nothing to update*
Which means we are done. Something VERY important though, is to use the new php.ini.
mv /etc/php.ini /etc/php.ini.backup
mv /etc/php.ini.rpmnew /etc/php.ini
Restart the VPS
Everything works for me! Enjoy! I hope that helps someone out there!