maybe your BaseOS repo is not a good source for update httpd
you can check with mine below and see if it is the same ?
[baseos]
name=AlmaLinux $releasever - BaseOS
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
maybe where you host your server / vps they have there own repos and are older ?
because when I rum yum install httpd I get this below
same thing if i try dnf install httpd
also httpd and httpd -v
you can check with mine below and see if it is the same ?
[baseos]
name=AlmaLinux $releasever - BaseOS
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
Code:
[[email protected] yum.repos.d]# cat almalinux.repo
# almalinux.repo
[baseos]
name=AlmaLinux $releasever - BaseOS
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[appstream]
name=AlmaLinux $releasever - AppStream
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[extras]
name=AlmaLinux $releasever - Extras
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
## Sources
[baseos-source]
name=AlmaLinux $releasever - BaseOS Source
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-source
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[appstream-source]
name=AlmaLinux $releasever - AppStream Source
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-source
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[extras-source]
name=AlmaLinux $releasever - Extras Source
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-source
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/Source/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
## Debuginfo
[baseos-debuginfo]
name=AlmaLinux $releasever - BaseOS debuginfo
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos-debuginfo
# baseurl=https://repo.almalinux.org/almalinux/$releasever/BaseOS/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[appstream-debuginfo]
name=AlmaLinux $releasever - AppStream debuginfo
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/appstream-debuginfo
# baseurl=https://repo.almalinux.org/almalinux/$releasever/AppStream/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
[extras-debuginfo]
name=AlmaLinux $releasever - Extras debuginfo
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/extras-debuginfo
# baseurl=https://repo.almalinux.org/almalinux/$releasever/extras/debug/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
because when I rum yum install httpd I get this below
Code:
[[email protected] /]# yum install httpd
Last metadata expiration check: 0:16:11 ago on Sat 30 Apr 2022 04:20:41 PM CDT.
Error:
Problem: problem with installed package ea-apache24-2.4.53-2.2.1.cpanel.x86_64
- package ea-apache24-2.4.53-2.2.1.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- package ea-apache24-2.4.52-3.3.6.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- package ea-apache24-2.4.52-3.3.7.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- package ea-apache24-2.4.53-1.1.7.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- package ea-apache24-2.4.53-1.1.8.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- cannot install the best candidate for the job
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[[email protected] /]#
Code:
[[email protected] /]# dnf install httpd
Last metadata expiration check: 0:17:37 ago on Sat 30 Apr 2022 04:20:41 PM CDT.
Error:
Problem: problem with installed package ea-apache24-2.4.53-2.2.1.cpanel.x86_64
- package ea-apache24-2.4.53-2.2.1.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- package ea-apache24-2.4.52-3.3.6.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- package ea-apache24-2.4.52-3.3.7.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- package ea-apache24-2.4.53-1.1.7.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- package ea-apache24-2.4.53-1.1.8.cpanel.x86_64 conflicts with httpd-mmn provided by httpd-2.4.37-43.module_el8.5.0+2631+6f259f31.3.alma.x86_64
- cannot install the best candidate for the job
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[[email protected] /]#
Code:
[[email protected] /]# httpd
httpd (pid 1888) already running
[[email protected] /]# httpd -v
Server version: Apache/2.4.53 (cPanel)
Server built: Apr 19 2022 23:38:52
[[email protected] /]#