Resolve serverName error when apache is started

Source: Internet
Author: User
Many children's shoes will report the error & quot; use 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 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 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: 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.