Solution: Httpd:could not reliably determine the server ' s fully qualified domain name

Source: Internet
Author: User
Tags learn php fully qualified domain name

(1) The first person to learn PHP will install Wamp or Xamp or phpstudy and other integrated environment software. But in reality, the company server-side Apache, PHP, MySQL are installed on their own.


(2) We say the installation of Apache, in fact, is said to install Apache HTTP Server software, so the download of the software general name is httpd-2.2.22-win32-x86 and the like.

--Website Download very pit Dad, a variety of web pages cannot open. Or Baidu has the following, in the Huawei Network disk download, is 2.2.22, at this time the official version 2.4.12. However, the same use.

-The installation process is simple. Once the installation is complete, it is a good idea to add a path to the system's environment variables. Otherwise, every time you write a httpd command, you have to use the full directory path.

Several main options for the--HTTPD command. Use-H to view help. Use-M to view loadable modules. View loaded modules with-L. -T is a check for httpd configuration file syntax issues. As follows:

>>>httpd-thttpd:could not reliably determine the server ' s fully qualified domain name, using 192.168.1.122 for Servernamesyntax OK

Although the syntax is fine, there is something similar to warning: httpd:could not reliably determine the server's fully qualified domain name, using 192.168.1.122 for ServerName. It means that the domain name is not found, the domain name is wrong.


Solution: Revision httpd.conf configuration file: Find the following paragraph, the ServerName front of the # removed.

We installed the Apache HTTP Server software while setting the domain name, but it is not open here. So, let's open it manually. This warning does not occur if you use httpd-t in cmd at this time.

# If Your host doesn ' t has a registered DNS name, enter its IP address Here.#<span style= "color: #FF0000;" >#</span>servername www.hello.com:80

Although checking the syntax with HTTPD-T does not require a restart of Apache. However, if the server accepts this configuration and takes effect, the Apache server needs to be restarted.

Solution: Httpd:could not reliably determine the server ' s fully qualified domain name

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.