/
How to start/stop Apache service.
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

How to start/stop Apache service.

How to create Apache as a service. (Windows)

  1. Open command prompt(Run as Administrator)

  2. Navigate to directory $APACHE_HOME\bin.

  3. Run the command as httpd.exe -k install -n "Apache2.4"

  4. The service will be initialized.

Note: For Linux, the service gets automatically created at the time of Apache installation.

How to start/stop service.

Windows

Start: Go to Task manager => Services tab => Click on the Apache2.4 service => Click on Start link. (In left panel)


Stop: Go to Task manager => Services tab => Click on the Apache2.4 service => Click on Stop link. (In left panel)

Linux

REDHat/CentOS: sudo systemctl start httpd
Ubuntu: sudo systemctl start apache2

Related content

How to run Tomcat as a service
How to run Tomcat as a service
More like this
Deployment steps
Deployment steps
Read with this
How to start/stop OpenSpecimen?
How to start/stop OpenSpecimen?
More like this
Deployment
Deployment
Read with this
How to start/stop MySQL service
How to start/stop MySQL service
More like this
Configure Apache
Configure Apache
More like this
Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com