How to solve the dns error when phpcms is installed
At present, after the phpcms official website stops parsing, many people install phpcms v9 and the following error occurs:
This is because the domain name used to detect dns resolution is the domain name of the phpcms official website. After the official website domain name stops parsing, the detection will definitely fail. The solution is as follows:
Open the /install/install.php file, line 49 or search $PHP_DNS:
$PHP_DNS = preg_match(“/^[0-9.]{7,15}$/”, @gethostbyname(‘www.phpcms.cn’)) ? 1 : 0;
inside www.phpcms. Change the cn domain name to the domain name where you are installing V9, or change it to www.baidu.com. There is no need for a protocol, and there is no slash
at the end. Then it is fine.
Recommended learning: phpcms usage tutorial
The above is the detailed content of How to solve the dns error when installing phpcms. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.