Resolve serverName error when apache is started

Source: Internet
Author: User


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

Related Article

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.