I'm setting up a sandbox type of server that will be used by a couple users as a development environment and knowledge base. The server will have a web frontend so I've installed Apache, MySQL and PHP.
Out of the box, everything under
/var/www is owner by
root:root. I haven't run a web server in a while but I'm pretty sure this isn't the best way of doing things. I vaguely remember the
www-data user existing.
How can I get apache et al. to run as these users and have files in
/var/www owned by that user and group (to which I can add my own user too)?