Questions? Feedback? powered by Olark live chat software
Knowledgebase
Author Avatar

yum update fails with ea-phpxx-runtime conflicts

Written by: on 12 October 2020 09:21 AM 12 October 2020 09:21 AM

Symptoms

cPanel updates report an error with /scripts/rpmup

Running yum update on terminal/SSH results in an error for example:

ea-php72-runtime-7.2.33-1.1.2.cpanel.x86_64 conflicts with packages ea-php72-runtime-7.2.34-1.1.1.cpanel.x86_64

This means that it cannot upgrade the package in-place properly.

Fix

To fix this we need to save the current settings, remove the package, then reinstall.

/usr/local/bin/ea_current_to_profile --output=/root/apacheprofile
/usr/local/cpanel/bin/rebuild_phpconf --current > /root/phphandlers

yum remove -y ea-php72-runtime-7.2.33-1.1.2.cpanel.x86_64

/usr/local/bin/ea_install_profile --install /root/apacheprofile
cat /root/phphandlers | grep DEFAULT | awk '{ print $3 }' | xargs -I {} /usr/local/cpanel/bin/rebuild_phpconf --default={}
cat /root/phphandlers | grep dso | awk '{ print $1 }' | xargs -I {} /usr/local/cpanel/bin/rebuild_phpconf --{}=dso
cat /root/phphandlers | grep suphp | awk '{ print $1 }' | xargs -I {} /usr/local/cpanel/bin/rebuild_phpconf --{}=suphp
cat /root/phphandlers | grep cgi | awk '{ print $1 }' | xargs -I {} /usr/local/cpanel/bin/rebuild_phpconf --{}=cgi

(0 vote(s))
Helpful
Not helpful