Error installing Apache 2.4 on Windows - not logging in as administrator

I am trying to configure Apache 2.4 on my Windows Vista after this guide . But I get eror when I run comman httpd -k install

// Error (OS 5) Access denied .: AH00369: Could not open WinNT service manager, pe rhaps did you forget to log in as administrator?

I do not log in as an administrator when I am on my computer. And when I check the control panel, administration tools, then Apache services are not listed.

Can anyone help with this?

+8
source share
3 answers

Locate cmd.exe and right-click to select run as administrator. enter image description here

enter image description here

+25
source

You need to run the command line in administrator mode.

Opening a Command Prompt Window in Administrator Mode

Note. Snap from Windows 8.

0
source

In Windows Server 2008, for some reason, the httpd -k install command did not work (AH00369), although I was on the admin command line.

However, I was able to install the service using the sc command ( https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc-exe and When creating a service using sc.exe how to pass context parameters? )

sc.exe create apache2.4 start= auto obj= "<username>" password= "<password>" DisplayName= "Apache 2.4" depend= "Tcpip/Afd" binpath= "\"c:\wamp\bin\apache\apache2.4.33\bin\httpd.exe\" -k runservice" 

username and password are required if you are accessing network drives or UNC paths from apache

0
source

All Articles