• Support
  • arm server, aapanel environment running discuz x3.5 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"

![https://i.imgur.com/ULFvjNM.png](https://)

If I use php7.4 and go into the backend home page it prompts.

Call to undefined function dns_get_record()

![https://i.imgur.com/Tw0OX5n.png](https://)

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.
  • 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

    aaPanel_Kern
    Thank you for your help!

    Installed:
    oniguruma-devel-6.8.2-2.el8.aarch64

    Complete!

    but:

    [root@KrServerII tmp]# yum install libsodium libsodium-devel -y
    Last metadata expiration check: 3:03:26 ago on Thu 22 Sep 2022 11:02:51 PM GMT.
    No match for argument: libsodium
    No match for argument: libsodium-devel
    Error: Unable to find a match: libsodium libsodium-devel

      SuperWorlds
      Hi, try this.
      yum makecache
      yum install libsodium-devel
      If it still doesn't work, please download and install manually
      wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/l/libsodium-devel-1.0.18-2.el8.aarch64.rpm
      rpm -ivh libsodium-devel-1.0.18-2.el8.aarch64.rpm

        aaPanel_Kern

        [root@KrServerII tmp]# yum makecache
        Ksplice for Oracle Linux 8 (aarch64) 175 kB/s | 3.0 kB 00:00
        MySQL 8.0 for Oracle Linux 8 (aarch64) 262 kB/s | 3.0 kB 00:00
        MySQL 8.0 Tools Community for Oracle Linux 8 (aarch64) 279 kB/s | 2.9 kB 00:00
        MySQL 8.0 Connectors Community for Oracle Linux 8 (aarch64) 288 kB/s | 2.9 kB 00:00
        Oracle Software for OCI users on Oracle Linux 8 (aarch64) 286 kB/s | 2.9 kB 00:00
        Oracle Linux 8 BaseOS Latest (aarch64) 321 kB/s | 3.6 kB 00:00
        Oracle Linux 8 Application Stream (aarch64) 343 kB/s | 3.9 kB 00:00
        Oracle Linux 8 Addons (aarch64) 264 kB/s | 3.0 kB 00:00
        Metadata cache created.

        [root@KrServerII tmp]# yum install libsodium-devel
        Last metadata expiration check: 0:00:10 ago on Fri 23 Sep 2022 02:34:39 AM GMT.
        No match for argument: libsodium-devel
        Error: Unable to find a match: libsodium-devel

        [root@KrServerII tmp]# wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/l/libsodium-devel-1.0.18-2.el8.aarch64.rpm
        --2022-09-23 02:35:00-- https://download-ib01.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/l/libsodium-devel-1.0.18-2.el8.aarch64.rpm
        Resolving download-ib01.fedoraproject.org (download-ib01.fedoraproject.org)... 152.19.134.145, 2600:2701:4000:5211:dead:beef:fe:fed6
        Connecting to download-ib01.fedoraproject.org (download-ib01.fedoraproject.org)|152.19.134.145|:443... connected.
        HTTP request sent, awaiting response... 200 OK
        Length: 1201520 (1.1M) [application/x-rpm]
        Saving to: ‘libsodium-devel-1.0.18-2.el8.aarch64.rpm’

        libsodium-devel-1.0.18-2. 100%[==================================>] 1.15M 743KB/s in 1.6s

        2022-09-23 02:35:04 (743 KB/s) - ‘libsodium-devel-1.0.18-2.el8.aarch64.rpm’ saved [1201520/1201520]

        [root@KrServerII tmp]# rpm -ivh libsodium-devel-1.0.18-2.el8.aarch64.rpm
        warning: libsodium-devel-1.0.18-2.el8.aarch64.rpm: Header V3 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY
        error: Failed dependencies:
        libsodium(aarch-64) = 1.0.18-2.el8 is needed by libsodium-devel-1.0.18-2.el8.aarch64
        libsodium.so.23()(64bit) is needed by libsodium-devel-1.0.18-2.el8.aarch64

          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

            aaPanel_Kern

            Thank you for your help!

            After the installation was complete, I uninstalled and reinstalled php 8.0 and 8.1.

            I noticed that the DNS_xxx error disappeared, but when using php8.1, the 502 Bad Gateway error appeared again on other pages.

            But I switched to php8.0 and everything was fine.

            Also, although I just reinstalled php8.0 and php8.1 and not php7.4, all pages were fine in the php7.4 environment.

            5 days later

            aaPanel_Kern

            Hi, after I got your help last time, I found that php7.4 still has some pages with "Call to undefined function dns_get_record()" error, so I ran discuz x3.5 with php8.0 without the error and found the following problem.

            1. After I installed a brand new discuz x3.5 system, I added more than 20 pieces of data for testing, and I found that the "portal.php" page of discuz x.3.5 was very slow to load, sometimes it would appear after loading for tens of seconds or even longer Sometimes after a few dozen seconds or even more, the error "502 bad gateaway" will appear.

            2, at the same time I carry out the operation of the new post release, found that after submitting the release, will be stuck for about 5-10 seconds before the post will be published successfully.

            I guess it is possible that the php environment of aapanel on ARM server is still lacking some dependency package that is not installed? Is there any dependency package that is not installed in my php environment that is causing inefficient execution of php (or mysql)? Please help!

              aaPanel_Kern

              I've read a lot of logs, but with my ability, I still can't find the root of the problem and I'm not able to fix it. I have been thinking that there is a high chance that the problem is caused by the incompatibility between ARM server and aapanel environment.

              Can I send you these logs in a zipped package by private message and please help me check what the problem is?

                aaPanel_Kern

                But I have a permanent free ARM server to use, so I'll make do with it.

                Anyway, thanks for your reply.

                Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com