PHPCMS V9 installation solution for DNS resolution failure-does not support collecting and saving remote pictures

Because after the phpcms official website stopped parsing, many people installed phpcms v9 with the following error:

PHPCMS V9 installation DNS resolution failure solution-does not support the collection and storage of remote pictures

This is because the domain name detected by dns is the domain name of phpcms official website. After the domain name of the official website is stopped, the detection will definitely fail. The solution is as follows:

Open the /install/install.php file, line 49 or search for $ PHP_DNS:

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

The www.phpcms.cn domain name is changed to the domain name where you are installing V9, or to www.baidu.com, no agreement is required, no slash at the end

Then it's ok.

Published 210 original articles · praised 37 · 170,000 views +

Guess you like

Origin blog.csdn.net/u012757419/article/details/105539418