
apache2
List of commands for apache2:
-
apache2:install Install an Apache2 webserver.$ apt-get install apachetry on your machineexplain this command
-
apache2:logs:access:show Show the last entries of the Apache2 access log.$ tail -n ${number_of_lines} /var/log/apache2/access.logtry on your machineexplain this command
-
apache2:logs:error:show Show the last entries of the Apache2 error log.$ tail -n ${number_of_lines} /var/log/apache2/error.logtry on your machineexplain this command
-
apache2:reload Reload the Apache webserver (more secure as it will only reload if the config is valid)$ systemctl reload apache2try on your machineexplain this command
-
apache2:restart Restart the Apache webserver$ systemctl restart apache2try on your machineexplain this command