Error APACHECTL-T

Source: Internet
Author: User

Httpd:apr_sockaddr_info_get () failed for www
Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK

Solution 1

Vim/usr/local/apache2/conf/httpd.conf
ServerName www.example.com:ServerName localhost:

Solution 2

Vim/etc/hosts
127.0. 0.1    localhost localhost.localdomain localhost4 localhost4.localdomain4127.0. 0.1 localhost.localdomain localhost www:: 1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Put the original comment off, add a new line, the last www is the hostname

Error APACHECTL-T

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.