Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
server_configuration:apache [2021/01/13 18:52] – david | server_configuration:apache [2022/07/22 16:39] (current) – [Core configuration] david | ||
---|---|---|---|
Line 18: | Line 18: | ||
</ | </ | ||
+ | Enable/ | ||
+ | <code bash> | ||
+ | # Disable | ||
+ | sudo a2dissite datablog.roman-halliday.com.conf | ||
+ | |||
+ | # Enable | ||
+ | sudo a2ensite datablog.roman-halliday.com.conf | ||
+ | </ | ||
===== File Ownership ===== | ===== File Ownership ===== | ||
Make sure all files are owned correctly: | Make sure all files are owned correctly: | ||
<code bash> | <code bash> | ||
# Site content owned by www-data so webserver can modify files | # Site content owned by www-data so webserver can modify files | ||
- | chown -R ../ www-data: | + | chown -R www-data: |
# Configuration owned by root for security | # Configuration owned by root for security | ||
- | chown -R ../ root:root / | + | chown -R root:root / |
</ | </ | ||