Home> CMS Tutorial> PHPCMS> body text

How to solve the dns error when installing phpcms

angryTom
Release: 2020-02-15 11:59:17
Original
3026 people have browsed it

How to solve the dns error when installing phpcms

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:

How to solve the dns error when installing phpcms

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.phpfile, line 49 or search$PHP_DNS:

$PHP_DNS = preg_match(“/^[0-9.]{7,15}$/”, @gethostbyname(‘www.phpcms.cn’)) ? 1 : 0;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!