Forrest logo
back to context overview

apache2

List of commands for apache2:

  • apache2:install Install an Apache2 webserver.
    $ apt-get install apache
    try on your machine
    explain this command
  • apache2:logs:access:show Show the last entries of the Apache2 access log.
    $ tail -n ${number_of_lines} /var/log/apache2/access.log
    try on your machine
    explain this command
  • apache2:logs:error:show Show the last entries of the Apache2 error log.
    $ tail -n ${number_of_lines} /var/log/apache2/error.log
    try on your machine
    explain this command
  • apache2:reload Reload the Apache webserver (more secure as it will only reload if the config is valid)
    $ systemctl reload apache2
    try on your machine
    explain this command
  • apache2:restart Restart the Apache webserver
    $ systemctl restart apache2
    try on your machine
    explain this command
back to context overview