Apache Toolcase


Install apache2 via APT

sudo apt install apache2

Manage Apache service

You can view status, start, stop and restart the service:

sudo service apache2 status
sudo service apache2 start
sudo service apache2 stop
sudo service apache2 restart


Change owner and group to www-data:

sudo chown -R www-data:www-data <dir>

Test configuration files

You can test the configuration files with the following command:

sudo apachectl configtest


Apache information:

apachectl -S

Review the log files

sudo apachectl -S | grep -i log

Leave a Reply