linux-site-deployment
Installation
SKILL.md
Site Deployment
Distro support
Two-family skill. Static/PHP/Node deployment is largely portable; the differences are how an Apache vhost is enabled, the web-server user, the firewall, and — on the RHEL family (Fedora, RHEL, CentOS Stream, Rocky, Alma, Oracle) — SELinux labeling of the docroot.
| Concept | Debian/Ubuntu | RHEL family |
|---|---|---|
| Enable Apache vhost | a2ensite (symlink) + reload |
drop *.conf in /etc/httpd/conf.d/ + reload |
| Web server user:group | www-data:www-data |
apache:apache |
| Default docroot | /var/www/html |
/var/www/html (same) |
| Reload web server | systemctl reload apache2 / nginx |
systemctl reload httpd / nginx |
| Open firewall | ufw allow 80,443/tcp |
firewall-cmd --permanent --add-service={http,https}; --reload |
| Docroot under SELinux | n/a | label httpd_sys_content_t + restorecon; uploads httpd_sys_rw_content_t |