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

Got feedback or spotted a mistake?

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