apache
Installation
SKILL.md
Identity
- Unit:
apache2.service(Debian/Ubuntu),httpd.service(RHEL/Fedora/CentOS) - Config (Debian):
/etc/apache2/apache2.conf,/etc/apache2/sites-available/,/etc/apache2/sites-enabled/,/etc/apache2/mods-available/,/etc/apache2/mods-enabled/,/etc/apache2/conf-available/ - Config (RHEL):
/etc/httpd/httpd.conf,/etc/httpd/conf.d/,/etc/httpd/conf.modules.d/ - Logs:
journalctl -u apache2/journalctl -u httpd,/var/log/apache2/(Debian),/var/log/httpd/(RHEL) - User:
www-data(Debian/Ubuntu),apache(RHEL/Fedora) - Distro install:
apt install apache2/dnf install httpd
Key Operations
| Operation | Debian/Ubuntu | RHEL/Fedora |
|---|---|---|
| Status | systemctl status apache2 |
systemctl status httpd |
| Start | sudo systemctl start apache2 |
sudo systemctl start httpd |
| Stop | sudo systemctl stop apache2 |
sudo systemctl stop httpd |
| Reload (graceful) | sudo systemctl reload apache2 |
sudo systemctl reload httpd |
| Restart | sudo systemctl restart apache2 |
sudo systemctl restart httpd |
| Test config | sudo apachectl configtest |
sudo apachectl configtest |
| Full config dump | sudo apache2ctl -S |
sudo httpd -S |
Related skills