Ownership and directories

You should avoid having Zenario's files owned by the root or ubuntu user, or by the Apache user (www-data).

Instead, make a Zenario-specific Linux user account. In this example that user will be called siteadmin.

(If someone else manages your Linux server, you may have had a user created for you, e.g. in your name.)

To make a siteadmin user, do this:

$ sudo adduser siteadmin
Adding user `siteadmin' ...
Adding new group `siteadmin' (1001) ...
Adding new user `siteadmin' (1001) with group `siteadmin' ...
Creating home directory `/home/siteadmin' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for siteadmin
Enter the new value, or press ENTER for the default
Full Name []: Zenario Site Admin
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]

Make a directory for Zenario, and give ownership to siteadmin.

This example assumes it will run under /var/www/clients/zenariosite/:

sudo mkdir /var/www/clients
sudo mkdir /var/www/clients/zenariosite
sudo chown -R siteadmin:siteadmin /var/www/clients