Resolution of an error occurred when Windows installation started Apache

Source: Internet
Author: User

Configuration installation Apache Master Service error occurred: (OS 5) Access denied. : ah00369:failed to open the Windows service manager, perhaps do forgot to log in as adminstrator?

Specific situation:

In the configuration of Apache installation, I downloaded the zip format, not the MSI installation version, you need to register the service, in order to have the httpd icon in the desktop taskbar.

The result is an error in the cmd command line when the installation Service command is entered, and the error message interface is as follows:

The error message indicates that I am not logged in as an administrator!

Workaround:

When you open the CMD program, run as an administrator.

The normal installation is complete: Errors reported here must is corrected before the service can be started.

(If there is an error message at the end of the sentence, the service installation fails and the error needs to be corrected first.) If not, then success. )

If the following error occurs

Do not panic, at this time, we open the Conf folder, find httpd.conf, modify the following content, let ServerRoot point to your installation location:

Define SRVROOT "D:/Program Files/wamp/Apache24" ServerRoot "${SRVROOT}"

Then execute the command: Httpd-k uninstall Uninstall the service and execute the installation command again, the prompt indicates that the installation was successful, the apache:httpd-k is started-start


At this time you can enter http://localhost in the browser to test the success, if not successful, the local 80 port is occupied, you can go to httpd.conf all 80 of the port to 8080, re-enter, if prompted, indicating that the installation was successful.

Resolution of an error occurred when Windows installation started Apache

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.