Hello, Centos 8 has officially ceased support for Centos 8 and switched to support for Centos 8 Stream project after December 31, 2021
Details:
https://centos.org/news-and-events/1322-october-centos-dojo-videos/
Therefore, aapanel cannot be installed properly on Centos 8. Please replace it to Centos 7 or Centos 8 Stream to install aapanel.
*Centos 7 is officially available until July 30, 2024
*Centos 8 Stream is officially supported until May 31, 2024
There is a temporary workaround that does not upgrade the system, but I do not recommend that you continue to use Centos8, I recommend that you upgrade it.
Copy everything below, execute from the SSH terminal, and reinstall PHP.
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|' \
-i.bak \
/etc/yum.repos.d/CentOS-*.repo