Introduction to web servers

Note:
This documentation has moved to a new home! Please update your bookmarks to the new URL for the up-to-date version of this page.

1 Like

One small comment to the section Sharing Write Permission: I guess that the creation of a group called webmasters is not necessary at all, since there already exists the group www-data created by the apache installation.
So better just change the example to use www-data instead and show how to add the necessary accounts:

usermod -a -G www-data
.

I’ve updated the text to reflect this, but the www-data group should not be granted write permissions. It is intended to sandbox the Apache process while it’s running, and granting it permissions to write to the document root means that attackers exploiting a vulnerability in Apache (or one of the applications it is serving) would be able to modify and/or remove the content in the document root.

While this guide is fine for html, There is no discussion on how to use the cgi-bin directory. For reasons I cannot understand Apache keeps changing the setup and rules to activate the cgi-bin directory so you can run programs a html page and the internet seems devoid of explaining how to do this.