Many children's shoes will report the error & quot; use 127.0.0.1 as servername & quot; after installing apache in linux. The solution is actually very simple. find httpd. conf in the conf Directory, open it, and find # ServerName127.0.0.1: 80. just remove the comment and change the ip address...
The error "please use 127.0.0.1 as servername" is reported when apache is installed and started in linux.
The solution is actually very simple. find httpd in the conf directory. conf, open it, and find the # ServerName 127.0.0.1: 80 line. just remove the comment and change the ip address to your domain name. if there is no domain name, change it to the local ip address.
Try it after startup. If an error is reported, check whether the startup command is entered with the Shell code. /apachectl start if you are using apachectl start, it will be wrong, because it is possible that apache is included in the local installation, and you modify the newly installed apache. Author g21121
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.