今天装了discuz X3.5 版本遇到了discuz Undefined constant "DNS_A" 和 Call to undefined function dns_get_record()
这个问题在目前是网络当中是无解的
而且 遇到的环境是 ARM的处理器搭建的系统和dz3.5才遇上
我用的是因特尔的至强处理器 也就是所谓的X86环境 ,在理论上不应该有这个问题 但是我遇上了 跟网友的遭遇一模一样
而且有非常多的人求解决,其实这个是无解的 ,唯一的方法就是换 VPS/服务器 ( 换一个X86的环境) 不要ARM处理器的主机
根据网友的推荐 建议debian或者乌班图系统 其他的容易出这个问题
换了底层硬件和系统 再就是 nginx mysql php全部用编译安装 ,不要用快速/极速安装 ,只有编译安装的软件环境才稳定
在上面这些前提下 如果还遇上这个问题
如果使用php8.0,进后台首页提示:
Undefined constant "DNS_A"
如果使用php7.4,进后台首页提示:
Call to undefined function dns_get_record()
这个在aapanel的论坛上 有人咨询并且有管理员给答复 参考https://forum.aapanel.com/d/14373-arm-server-aapanel-environment-running-discuz-x35-error
Discuz x3.5 installation into the background error
If I use php8.0 and go into the backend home page it prompts.
Undefined constant "DNS_A"

If I use php7.4 and go into the backend home page it prompts.
Call to undefined function dns_get_record()

Hardware and System Environment:
ARM CPU 4 cores 24G
OS: Red Hat Enterprise Linux release 8.6 (Ootpa) aka oracle linux 8.6
nginx environment for aapanel
aaPanel_Kern replied to this.
aaPanel_KernSep 23, 2022Best Answerset by SuperWorlds Sep 23, 2022
SuperWorlds
wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/l/libsodium-1.0.18-2.el8.aarch64.rpm
rpm -ivh libsodium-1.0.18-2.el8.aarch64.rpm libsodium-devel-1.0.18-2.el8.aarch64.rpm
这个问题 在不换硬件 不换系统 不换环境软件的前提下 我是这样临时解决的
因为 只有后台首页出这个错误 ,那么我们可以这样做
博主亲身遇到 , 亲测解决的经历 价值宝贵 仅限本站VIP会员可见 请谅解
本教程不售卖 博主整理的资料 仅限VIP可见
VIP自愿加入
参考资料 https://www.dismall.com/thread-13673-1-1.html
https://hostloc.com/thread-1079441-1-1.html