logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: I can not get Apache 2.4 to start from CMD prompt
Author
DSimm626



Joined: 03 Aug 2023
Posts: 1
Location: Hiram, GA USA

PostPosted: Fri 04 Aug '23 21:00    Post subject: I can not get Apache 2.4 to start from CMD prompt Reply with quote

Hello,
I'm very new to this and have the below issue when trying to start Apache from the CMD prompt as administrator:

C:\HTTPD\Apache24\bin>service Apache
'service' is not recognized as an internal or external command,
operable program or batch file.

I have tried to resolve this through searches online but probably have messed my install up. I also have 2 Apache's listed on my Apache HTTPD Server monitor.
I am running Windows 11.
If you need any more info or have an answer, please let me know.

Thank you
Back to top
axel.kam



Joined: 11 Jul 2023
Posts: 7

PostPosted: Sat 05 Aug '23 1:45    Post subject: Re: I can not get Apache 2.4 to start from CMD prompt Reply with quote

DSimm626 wrote:
Hello,
I'm have the issue when trying to start Apache from the CMD prompt


1.
To run Apache without service installation:
C:\HTTPD\Apache24\bin\httpd.exe


2.
To install as service with default name 'Apache2.4':
C:\HTTPD\Apache24\bin\httpd.exe -k install

To uninstall as service with default name 'Apache2.4':
C:\HTTPD\Apache24\bin\httpd.exe -k uninstall

To start installed service from cmd prompt:
net start Apache2.4

To stop installed service from cmd prompt:
net stop Apache2.4


3.
To install as service and set service name:
C:\HTTPD\Apache24\bin\httpd.exe -k install -n ApacheNewServiceName_1

To uninstall service with name:
C:\HTTPD\Apache24\bin\httpd.exe -k uninstall -n ApacheNewServiceName_1

To start installed service from cmd prompt:
net start ApacheNewServiceName_1

To stop installed service from cmd prompt:
net stop ApacheNewServiceName_1

Useful if you need several service installation on one PC.
Back to top


Reply to topic   Topic: I can not get Apache 2.4 to start from CMD prompt View previous topic :: View next topic
Post new topic   Forum Index -> Apache