Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 09:52:34 AM

Pages: [1]   Go Down
  Print  
Author Topic: is there anyway to only upgrade PHP 5, but leave mysql 4.x untouched?  (Read 822 times)
testall
Intergalactic Cowboy
*****
Offline Offline

Posts: 70


« on: May 30, 2007, 09:01:41 PM »

If i do "yum update php" , the mysql also get upgrade to 5.x, which i do not want.

If i put "exclude=mysql mysql-server mysql-client mysql-devel" in /etc/yum.repos.d/CentOS-Base.repo…, it complains about dependence of php-mysql package, then i removed the package, but damaged the Plesk !!!
 Confused

Thanks.


Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #1 on: May 30, 2007, 09:31:49 PM »

Hi,

You would need to compile PHP manually to have 2 different versions of PHP on the server. It is not possible to get them both installed at the same time using RPM.

Logged

Kind Regards,
Vlad Artamonov
testall
Intergalactic Cowboy
*****
Offline Offline

Posts: 70


« Reply #2 on: May 31, 2007, 07:16:02 AM »

Oh, no, I definetly don't want to config 2 sets of PHP on one server, it just make things complicated and may bring extra trouble later.

I like php5, the speed is faster than php 4 and has new functions i would chose to use.

I don't like mysql5, the speed is slow, and the new functions i most likely will to to use.

so i only have 2 choices: php4+mysql4( orginal setup), or upgrade to php5+mysql5.

tough call.  Doh
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #3 on: May 31, 2007, 07:49:13 PM »


Ahh, I am sorry I overlooked that you wanted PHP5 with Mysql 4. You can try to upgrade to PHP 5.1.6 leaving MySQL 4 installed. To do so, edit /etc/yum.repos.d/CentOS-Base.repo and set "enabled=1" for centosplus repository. Then run

Code:
yum upgrade php

Please advise how the upgrade goes for you.
Logged

Kind Regards,
Vlad Artamonov
testall
Intergalactic Cowboy
*****
Offline Offline

Posts: 70


« Reply #4 on: May 31, 2007, 09:34:01 PM »

I was thinking the same way, but i found out it is impossible to only upgrade PHP, the mysql will automaticly upgrade too, since they are dependences. Nope


Ahh, I am sorry I overlooked that you wanted PHP5 with Mysql 4. You can try to upgrade to PHP 5.1.6 leaving MySQL 4 installed. To do so, edit /etc/yum.repos.d/CentOS-Base.repo and set "enabled=1" for centosplus repository. Then run

Code:
yum upgrade php

Please advise how the upgrade goes for you.
Logged
vivalite
Intergalactic Cowboy
*****
Offline Offline

Posts: 52


« Reply #5 on: June 01, 2007, 09:18:02 PM »

Oh, no, I definetly don't want to config 2 sets of PHP on one server, it just make things complicated and may bring extra trouble later.

I like php5, the speed is faster than php 4 and has new functions i would chose to use.

I don't like mysql5, the speed is slow, and the new functions i most likely will to to use.

so i only have 2 choices: php4+mysql4( orginal setup), or upgrade to php5+mysql5.

tough call.  Doh


If you really want speed then try PHP eAccelerator on your PHP4. It said 4-10 times faster than PHP5.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1395



« Reply #6 on: June 02, 2007, 06:10:12 AM »

I was thinking the same way, but i found out it is impossible to only upgrade PHP, the mysql will automaticly upgrade too, since they are dependences. Nope


Ahh, I am sorry I overlooked that you wanted PHP5 with Mysql 4. You can try to upgrade to PHP 5.1.6 leaving MySQL 4 installed. To do so, edit /etc/yum.repos.d/CentOS-Base.repo and set "enabled=1" for centosplus repository. Then run

Code:
yum upgrade php

Please advise how the upgrade goes for you.

Good to know that. This changed recently it seems  Confused
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to: