Troubleshooting Apache Boot Errors

Source: Internet
Author: User

Problem Description: After installing Apache install-y httpd, start the error as follows:


[[Email protected] ~]# service httpd start

Starting Httpd:httpd:apr_sockaddr_info_get () failed for it3246

Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0.1 for ServerName Determine

Workaround:

    1. Edit Hosts File

[Email protected] html]# vi/etc/hosts

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6

127.0.0.1 it3246

Note: it3246 is my own machine name based on your machine hostname [[email protected] html] Inside @ behind is the machine name


After you finish editing the Hosts file, a problem is resolved. There are also error hints


[Email protected] etc]# service httpd restart

Stop httpd: [OK]

Starting httpd:httpd:Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

2. Workaround:

Edit the httpd.conf file, search for "#ServerName", add ServerName it3246:80 or remove the original

#ServerName www.example.com:80 Change the previous comment back to it3246:80

[[email protected] conf]# ls

Extra httpd.conf Magic Mime.types Original

[Email protected] conf]# VI httpd.conf

#ServerName www.example.com:80

ServerName it3246:80

3. Restart Apache.

[[Email protected] etc]# service httpd status

HTTPD (PID 29506) is running ...


Note: The article it3246 is based on its own machine to replace the host name

This article is from the "Persistent It Man" blog, please be sure to keep this source http://it3246.blog.51cto.com/7479386/1845244

Troubleshooting Apache Boot Errors

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.