How To Fix Errors YUM in EasyApache

How To Fix Errors YUM in EasyApache

⚡ Errors YUM in EasyApache – How to Resolve

YUM errors can break EasyApache builds and cause Apache/PHP updates to fail. Below are fixes in order of escalation.


✅ Fix 1: Clean YUM Metadata and Cache

Corrupted YUM metadata or cached packages often trigger errors. Run:

# yum clean headers
# yum clean packages
# yum clean dbcache
# yum clean metadata
# yum clean all

✅ Fix 2: Repair Package Manager Issues

EasyApache depends on a working RPM/YUM database.

Update system packages:

#  yum -y update 

If that fails due to RPM corruption, rebuild the database:

#  rm -f /var/lib/rpm/__db.*
# rpm -vv --rebuilddb
# yum -y update

✅ Fix 3: OpenSSL Conflicts

Sometimes OpenSSL conflicts block EasyApache builds. Example error:

file /usr/lib/openssl/engines/libsureware.so from install of openssl-0.9.8e-12.el5_5.7.i386 conflicts with file from package openssl-0.9.8e-12.el5_5.7.i686

To resolve:

#  rpm -e --justdb --nodeps openssl.i386
# yum install openssl 

👉 Make sure you install the correct OpenSSL package for your server’s architecture (32-bit vs 64-bit).


✅ Fix 4: Reinstall Apache/EasyApache Packages

If YUM issues persist:

# yum reinstall ea-apache* -y
# /scripts/rebuildhttpdconf
# /scripts/restartsrv_httpd 

This reinstalls EasyApache packages, rebuilds the Apache config, and restarts Apache.


📝 Summary

  1. Clean YUM cacheyum clean all

  2. Repair RPM DBrpm --rebuilddb

  3. Fix OpenSSL conflicts → remove mismatched packages

  4. Reinstall Apache packages → restore EasyApache


⚠️ If errors persist after all these steps, it may indicate a bad repo configuration (e.g., CloudLinux, CentOS-Stream mismatch, or third-party repos).

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0