|
perestrelka
|
 |
« Reply #15 on: October 14, 2008, 11:58:33 PM » |
|
Hello conga3,
Actually the step "rpm -e `rpm -aq | grep yum`" is needed only if you don't need yum in the feature. You can either replace "rpm -e `rpm -aq | grep yum`" with "rpm -e yum atomic-release" or just lease yum installed as "rpm -e" command removes it from the system.
As for the 4.1.20 version in phpinfo page, it is nothing to worry about as the module is linked against 4.1.20 library in order to avoid any potential problems after MySQL upgrade to the version 5 as the entire system was compiled against MySQL 4. If you don't like seeing 4.1.20 mention in phpinfo(), the only way to fix it is to rebuild PHP rpms.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
mikem
Newbie
Offline
Posts: 1
|
 |
« Reply #16 on: October 23, 2008, 05:01:53 PM » |
|
I have upgraded php and mysql using the steps mentioned in this thread. Both seemed to update fine, though it looks as though the version of PHP5 I have now does not have mysql enabled. Do I have to uninstall php and re-update with addition configuration commands? If so what would be the simplest method of uninstalling.
Thanks, - Mike
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #17 on: October 25, 2008, 12:01:13 AM » |
|
Hi Mikem,
Please ensure that php-mysql rpm is installed on your server.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
ptejad
Newbie
Offline
Posts: 2
|
 |
« Reply #18 on: November 09, 2008, 11:03:51 AM » |
|
You will definitely not get anywhere after the php/mysql upgrade unless you do this too, took me a while to find that out on my own, would be nice if lunarforums/faqs would have correct instructions I get this during final step: [root@vps ~]# rpm -e `rpm -aq | grep yum` error: Failed dependencies: yum >= 2.2 is needed by (installed) atomic-release-1.0-7.el4.art.noarch  ? Also need 3 more steps: -Replace /etc/my.cnf with /etc/my.cnf.rpmnew -Replace /etc/php.ini with /etc/php.ini.rpmnew -Reboot Server
|
|
|
|
|
Logged
|
|
|
|
zuyiwang
Trekkie

Offline
Posts: 14
|
 |
« Reply #19 on: November 09, 2008, 04:10:11 PM » |
|
Hello, ptejad Yes, this step is must, it also took me a night to work out this. Thank you Zuyi You will definitely not get anywhere after the php/mysql upgrade unless you do this too, took me a while to find that out on my own, would be nice if lunarforums/faqs would have correct instructions I get this during final step: [root@vps ~]# rpm -e `rpm -aq | grep yum` error: Failed dependencies: yum >= 2.2 is needed by (installed) atomic-release-1.0-7.el4.art.noarch  ? Also need 3 more steps: -Replace /etc/my.cnf with /etc/my.cnf.rpmnew -Replace /etc/php.ini with /etc/php.ini.rpmnew -Reboot Server
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #20 on: November 10, 2008, 08:03:45 PM » |
|
Please expect the completed instructions to be compiled on this week, if nothing urgent happens.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
Nauno
Newbie
Offline
Posts: 2
|
 |
« Reply #21 on: November 21, 2008, 10:15:05 PM » |
|
I did everything but when I type yum update php or yum update mysql it says: could not find match for php or could no find match for mysql no packages marked for update/obsoletion I just need to update mysql 4.1.22 to any 5 thanks you very much for your time 
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #22 on: November 23, 2008, 10:44:47 PM » |
|
I did everything but when I type yum update php or yum update mysql it says: could not find match for php or could no find match for mysql no packages marked for update/obsoletion I just need to update mysql 4.1.22 to any 5 thanks you very much for your time  I replied to there inquiries in your private message to me. If you are still having this issue, please reply either there either here without creating double posting which can lead to confusion.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
Nauno
Newbie
Offline
Posts: 2
|
 |
« Reply #23 on: November 24, 2008, 01:12:48 PM » |
|
I did everything but when I type yum update php or yum update mysql it says: could not find match for php or could no find match for mysql no packages marked for update/obsoletion I just need to update mysql 4.1.22 to any 5 thanks you very much for your time  I replied to there inquiries in your private message to me. If you are still having this issue, please reply either there either here without creating double posting which can lead to confusion. thank you for the replay perestrelka ok I try: rpm -ivh http://www.atomicorp.com/channels/atomic/centos/4/i386/RPMS/atomic-release-1.0-7.el4.art.noarch.rpmAnd the console says: Package atomic-release-1.0-9.el4.art (which is newer than atomic-release-1.0-7.el4.art) is already installed. So then I typed: yum update php* or mysql* and it says: Reading repository metadata from local files count not find update match for php* (same for mysql) No packages marked for Update/Obsoletion currently I have PHP Version 5.2.6 and mysql 4.1.22 ( but I need mysql 5) perestrelka thanks for any help
|
|
|
|
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #24 on: November 28, 2008, 03:50:03 AM » |
|
currently I have PHP Version 5.2.6 and mysql 4.1.22 ( but I need mysql 5)
perestrelka thanks for any help
How are you checking the mysql version? Do you do that via phpinfo() output?
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
rdlowrey
Trekkie

Offline
Posts: 12
|
 |
« Reply #25 on: December 05, 2008, 09:16:49 PM » |
|
followed all the steps in the thread but had the same problem as mikem -- php was installed without mysql enabled. a check of my phpinfo confirmed this as my configure command included '--without-mysql'
...BUT I COULD STILL AT LEAST USE PLESK.
then i ran the following command:
[root@vps ~]# yum install php-mysql
Setting up Install Process Setting up repositories update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 atomic 100% |=========================| 951 B 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files Parsing package install arguments Nothing to do ===============================
now if i try to use PLESK i get:
Internal Plesk error occurred: Unable to connect to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
can someone please help me fix this?
|
|
|
|
|
Logged
|
|
|
|
rdlowrey
Trekkie

Offline
Posts: 12
|
 |
« Reply #26 on: December 05, 2008, 09:33:49 PM » |
|
AND i don't know my server's IP address so i can't ssh in to try and fix anything as I was using the java-based ssh console in plesk (which is now unavailable) to make changes. ====== UPDATE ====== I fixed it finally - 3AM yay! I know we've all been there. Anyway, I'll post what I did in case it helps someone down the road ... Follow all the instructions provided, then MAKE SURE you do this: -Replace /etc/my.cnf with /etc/my.cnf.rpmnew -Replace /etc/php.ini with /etc/php.ini.rpmnew -Reboot Server You will likely still get this error in your scripts after doing all of the above: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' If so, try these instructions for initializing mysql.sock after an upgrade: http://corpocrat.com/2008/05/16/fix-cant-connect-to-local-mysql-server-through-socket-varlibmysqlmysqlsock/
|
|
|
|
« Last Edit: December 06, 2008, 12:18:37 AM by rdlowrey »
|
Logged
|
|
|
|
|
perestrelka
|
 |
« Reply #27 on: December 06, 2008, 12:40:43 AM » |
|
Hi Rdlowrey,
Thanks for sharing your experience on this. Your advises will be added into the howto that is being prepared for this topic.
|
|
|
|
|
Logged
|
Kind Regards, Vlad Artamonov
|
|
|
Relaxasaurus
Trekkie

Offline
Posts: 19
|
 |
« Reply #28 on: February 05, 2009, 08:58:58 PM » |
|
Hi, are these directions still current? I did not get a php.ini.rpmnew file but got the my.cnf.rpmnew file. I couldn't replace the php.ini file because of this and my site is still saying PHP Version 4.3.9 after rebooting  Should I start from scratch? EDIT- Hold on I figured it out.... this link is getting a 404: http://www.atomicorp.com/channels/atomic/centos/4/i386/RPMS/atomic-release-1.0-7.el4.art.noarch.rpm
|
|
|
|
« Last Edit: February 05, 2009, 09:06:40 PM by Relaxasaurus »
|
Logged
|
|
|
|
|
|
|