Centos Howto Upgrade to PHP 5.3 from 5.2

It's not as simple as "yum install" as you can see below and it doesn't stop there.

 yum install php53
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * rpmforge: mirror.us.leaseweb.net
 * extras: centos.mirror.rafal.ca
 * updates: centos.mirror.nexicom.net
 * base: centos.mirror.nexicom.net
 * addons: centos.mirror.nexicom.net
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package php53.i386 0:5.3.3-22.el5_10 set to be updated
--> Processing Dependency: php53-cli = 5.3.3-22.el5_10 for package: php53
--> Processing Dependency: php53-common = 5.3.3-22.el5_10 for package: php53
--> Running transaction check
---> Package php53-cli.i386 0:5.3.3-22.el5_10 set to be updated
---> Package php53-common.i386 0:5.3.3-22.el5_10 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package php-common.i386 0:5.1.6-43.el5_10 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-mysql
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-cli
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-pdo
--> Processing Dependency: php-common = 5.1.6-27.el5_5.3 for package: php-imap
--> Running transaction check
---> Package php-pdo.i386 0:5.1.6-43.el5_10 set to be updated
---> Package php-imap.i386 0:5.1.6-43.el5_10 set to be updated
---> Package php-mysql.i386 0:5.1.6-43.el5_10 set to be updated
---> Package php-cli.i386 0:5.1.6-43.el5_10 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-22.el5_10.i386 from updates has depsolving problems
  --> php53-common conflicts with php-common
Error: php53-common conflicts with php-common

Run what is below to avoid dependency hell that I decided not to paste.

yum -y install package-cleanup
package-cleanup --problems
package-cleanup --dupes
package-cleanup --orphans
rpm -Va --nofiles --nodigest
#this fixed it
yum clean all

This will require downtime but I couldn't fiind another way that worked:

 echo y|yum remove php-*;echo y|yum install php53*

yum -x php53-odbc64 install php53*

Stopping httpd:                                            [FAILED]
Starting httpd: [Wed Jan 22 16:35:58 2014] [warn] module php5_module is already loaded, skipping
httpd: Syntax error on line 994 of /etc/httpd/conf/httpd.conf: Syntax error on line 3 of /www/conf/a*********-best.com.conf: Syntax error on line 1 of /usr/local/zend/etc/sites.d/zend-default-vhost-80.conf: Include directory '/usr/local/zend/etc/sites.d/http/__default__/0' not found

To solve the above you have to remove some weird stuff that Zend adds to your default vhost.


#Include "/usr/local/zend/etc/sites.d/zend-default-vhost-80.conf"

#Include "/usr/local/zend/etc/sites.d/globals-*.conf"
#Include "/usr/local/zend/etc/sites.d/vhost_*.conf"

Your php.ini will probably be wiped out and overwritten so make sure you enable short tags or PHP code with <? will not be working and will display as HTML:

short_open_tag = On


centos, howto, upgrade, php, quot, yum, install, doesn, plugins, fastestmirror, loading, speeds, cached, hostfile, rpmforge, leaseweb, extras, rafal, ca, updates, nexicom, addons, parsing, arguments, resolving, dependencies, transaction, _, updated, processing, dependency, cli, conflicts, restarting, resolution, mysql, pdo, imap, depsolving, cleanup, dupes, orphans, rpm, va, nofiles, nodigest, downtime, couldn, fiind, echo, odbc, httpd, wed, module, _module, skipping, syntax, etc, conf, www, usr, zend, sites, default, vhost, directory, http, __default__, adds, dc, bc, caf, bb, dadce, bd, fc, eb, globals, vhost_, ini, overwritten, enable, tags, display, html, short_open_tag,

Latest Articles

  • ssh Too many authentication failures not prompting for password
  • LightDM Mint Ubuntu Debian won't start errors Nvidia Graphics
  • WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd development libraries installed, or specify a path with --glvnd-egl-config-path. Linux Ubuntu Mint Debian E
  • How To Upgrade Linux Mint 18.2 to 18.3 to 19.x and 20.x
  • MP3s Won't Play / ID3 Version 2.4 Issues in Cars and Other MP3 Players/CDs/DVDs Solution
  • LXC Containers LXD How to Install and Configure Tutorial Ubuntu Debian Mint
  • GlusterFS HowTo Tutorial For Distributed Storage in Docker, Kubernetes, LXC, KVM, Proxmox
  • Ubuntu Mint audio output not working pulseaudio "pulseaudio[13710]: [pulseaudio] sink-input.c: Failed to create sink input: too many inputs per sink."
  • How To Shrink Dynamically Allocated VM QEMU KVM VMware Disk Image File
  • How To Enable Linux Swapfile Instead of Partition Ubuntu Mint Debian Centos
  • 404 Not Found [IP: 80] apt update Debian 11 Bullseye Solution The repository 'http://security.debian.org bullseye/updates Release' does not have a Release file.
  • WARNING: Can't download daily.cvd from db.local.clamav.net freshclam clamav error solution
  • (firefox:9562): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Failed to execute child process "dbus-launch" (No such file or directory) Solution
  • Debian Mint Ubuntu Which Package Provides missing top, ps and w Solution
  • Vbox Virtualbox DNS NAT Network Mode NOT working
  • Docker Tutorial HowTo Install Docker, Use and Create Docker Container Images Clustering Swarm Mode Monitoring Service Hosting Provider
  • Zoom Password Error 'That passcode was incorrect' - Solution Wrong Passcode Wrong Meeting Name
  • How To Startup and Open Remote/Local Folder/Directory in Ubuntu Linux Mint automatically upon login
  • How To Reset Windows Server Password 2019, 2022, 7, 8, 10, 11 Recovery and Removal Guide Using Linux Ubuntu Mint Debian
  • How To Create OpenVPN Server for Secure Remote Corporate Access in Linux Debian/Mint/Ubuntu with client public key authentication