CentOS 5.6 php 5.3

17 posts / 0 new
Last post
#1 Sun, 04/10/2011 - 07:36
helpmin

CentOS 5.6 php 5.3

Did anybody upgrade already from 5.5 to 5.6 and replaced the "vm bleeding edge" 5.2 php version with the centos 5.3 version?

Sun, 04/10/2011 - 07:48
ronald
ronald's picture

I did not upgrade yet. It will take some time before I will do so as I would first test it

Sun, 04/10/2011 - 09:48
andreychek

Some folks in the Virtualmin IRC channel (on freenode over at #virtualmin) had mentioned they were now using CentOS 5.6 and PHP 5.3. But as Ronald said, I'd suggest doing plenty of testing first... PHP 5.3 has quite a few changes, and not all applications support it well quite yet.

If you don't have a dev server or some sort of test environment (such as running CentOS in a VirtualBox VM), now would be a great time to set one up, it'll help with testing :-)

-Eric

Sun, 04/10/2011 - 09:58
helpmin

I am not worried about PHP 5.3 compatibility :-) I am just wondering whether somebody did it already?

Sun, 04/10/2011 - 11:02
ronald
ronald's picture

PHP 5.3 isn't in centos 5.6, I upgraded on 1 system to 5.6 with no errors but still running php5.2.11

Sun, 04/10/2011 - 11:06
andreychek

CentOS 5.6 comes with a new package named "php53", which is PHP 5.3.3. It's not installed by default, but for folks who want it, it can be used to replace PHP 5.1.6 in the "php" package.

-Eric

Sun, 04/10/2011 - 14:24
mlkoekenberg
mlkoekenberg's picture

Cent 5.6. is Running without any problems. The instalation of the php53 package gives a dependency error on php-common

[root@da-dev001 ~]# yum install php53 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.transip.nl * extras: centos.mirror.transip.nl * updates: centos.mirror.transip.nl Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php53.i386 0:5.3.3-1.el5_6.1 set to be updated --> Processing Dependency: php53-cli = 5.3.3-1.el5_6.1 for package: php53 --> Processing Dependency: php53-common = 5.3.3-1.el5_6.1 for package: php53 --> Running transaction check ---> Package php53-cli.i386 0:5.3.3-1.el5_6.1 set to be updated ---> Package php53-common.i386 0:5.3.3-1.el5_6.1 set to be updated --> Processing Conflict: php53-common conflicts php-common --> Finished Dependency Resolution php53-common-5.3.3-1.el5_6.1.i386 from updates has depsolving problems --> php53-common conflicts with php-common Error: php53-common conflicts with php-common You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest

Mon, 04/11/2011 - 07:20
lewellyn

php53 conflicts with php, so it's unsurprising you also see conflicts in the -common packages.

For what it's worth, I found php53 unusable for SquirrelMail, so I ended up moving to php53u from IUS...

Mon, 04/11/2011 - 07:27 (Reply to #8)
mlkoekenberg
mlkoekenberg's picture

I removed PHP and installed PHP 5.3.

I don't use SquirrelMail. My test environment is running without any problems. (or I did'nt find them yet ;-) )

Wed, 04/13/2011 - 11:09
helpmin

I updated to Centos 5.6. No problems so far. Next step will be to replace VM's php 5.2 with php 5.3.

Thu, 04/14/2011 - 03:30
helpmin

Actually I decided that the PHP 5.2 version from the bleeding repo is good enough. I will postpone php 5.3 until Centos 6.0 (/6.1) is ready.

But the update to Centos 5.6 was very smooth.

Thu, 04/14/2011 - 07:17
mlkoekenberg
mlkoekenberg's picture

How was the update to PHP 5.2?

Thu, 04/14/2011 - 12:32
helpmin

This was part of VM installation

Thu, 04/14/2011 - 16:23
unsalkorkmaz

as a newbie, can i ask how to replace php with php53 safely? ( yes running on centos 5.6 )

Wed, 05/25/2011 - 00:26 (Reply to #14)
helpmin

I came to the conclusion that it is better not to install the official php 5.3 version on centos 5.6 (unless of course some extremely important software only runs on php53). It is better to to go with the virtualmin php 5.2 version. The main reason is basically that there is no official php53-pear package.

Any thoughts about this?

Wed, 05/25/2011 - 13:29
dirtybird

I just just installed VM on a fresh centos5.6 server. Exactly how do I upgrade php and mysql?? Is this done with VM or through the terminal. Normally i would just try it to see if it works but I am running out of time to get this done.

Wed, 05/25/2011 - 13:44 (Reply to #16)
andreychek

Howdy,

There's instructions on setting up Virtualmin's bleed repo, which includes PHP 5.2.x, available here:

http://www.virtualmin.com/documentation/system/bleed

Topic locked