chcon -t httpd_sys_content_t /srv/site

Category: VPS Management

chcon -t httpd_sys_content_t /srv/site

Temporarily change an SELinux file context

Use `chcon -t httpd_sys_content_t /srv/site` to temporarily change an SELinux file context. Helpful when you need this quickly on a Linux server.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.