How do i start/stop apache manually?



  • Apache is usually installed via linux or unix command apt, yum, pkgadd, etc. To start or stop apache manually you can invoke the apachectl command.

    $ sudo /usr/local/bin/apachectl start
    
    $ sudo /usr/local/bin/apachectl stop
    

    Ideally you want it to start/stop during system start and system shutdown, via the servers init scripts or systemd.


Log in to reply
 

© Lightnetics 2024