Web site background Generation error resolution

Source: Internet
Author: User
Keywords Website building building station experience

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

If someone has used PHP program, MYQSL language editor site webmaster should occasionally encounter a situation, backstage lifetime achievements error, after the generation, the first page appears blank, but the site can open the pages, if this problem, it is obvious that the server's DNS settings have problems. If the site is using a virtual host, then let the space provider set up on the line, if it is a cloud host or VPS will be set up their own hands. What is the specific?

Warning:file_get_contents () [function.file-get-contents]: Php_network_getaddresses:getaddrinfo failed: Not aware of such a host. In D:\wwwroot\index.php on line 2

Warning:file_get_contents (http://wwwtest.cn/) [function.file-get-contents]: Failed to open stream:no error in D:\http ://www.js-huoyun.com\index.php on line 2

The red code in the middle indicates a problem with a Web site background error, open I was also looking for a long time can not find solutions, not responsible for the space business directly to say can not solve, but under their own after the VPS to check the tutorial, set up a Web site DNS, did not find unexpectedly so simple, And as a space business even this small problem can not solve, so the author here also remind webmaster to choose between business, server problem please refer to the website "soul-server".

To set DNS steps for a server or VPS:

The first step: Open the Operation steps, click the control panel → network connection → Right click on the local connection, click on the properties.

Step Two: Click on the attribute to enter a property of the interface as shown in the following figure: we select "Internet Protocol (TPC/IP)", and then click "Attribute" in the General option to enter the following interface.

  

Step three: Use the following IP address, and then, in turn, change the IP address, subnet mask, default gateway, preferred DNS server, alternate DNS server, to the information displayed in the Network Configuration information Query page, click OK, then click Close, and the configuration will take effect. The following figure shows the input IP119.147.115.6, subnet mask 255.255.255.0, default gateway 119.147.115.1 the first DNS server 121.12.170.23 an alternate DNS server 8.8.8.8

After the change, click OK, shut down the restart can, and then regenerate the site data can be! At that time in order to set up this DNS, the space trader gave me 3 IP, and then I have been restored site information, upload, restore, has been doing a lot of times did not do a good job, and later still under the guidance of programmers know, I didn't think it was that simple. Things are to share out, do not worry about the site behind the error of the background generated.

Article by the Kunshan Jiali Freight Forwarding Co., Ltd. Editor, http://www.js-huoyun.com/Welcome reprint exchange, the first webmaster network, reprinted please explain the purpose.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.