(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