When Apeache fails to be started, use the command line to detect (novice) and apeache command line.

Source: Internet
Author: User

When Apeache fails to be started, use the command line to detect (novice) and apeache command line.

1. When configuring the Apache server, it is often necessary in httpd. conf: Modify and add some code. If The code is written by mistake or The code is written incorrectly, The requested operation has failed will be reported directly when it cannot be started normally!

2. for new users, it is not easy to find out the configuration error of Apache. At this time, you can use the command line for detection.

3. Open the command line and enter httpd.exe-t on the black screen to report the configuration file error.

// The program file under Apache/bin when httpd.exe is called, so configure the bad environment variable

// When other errors are reported on the black screen, add ServerName localhost: 80 to the configuration file.

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.