...
Code Block | ||
---|---|---|
| ||
cd /home sudo mkdir www.krypton.com # Home directory for the website. sudo mkdir www.earth.com cd /home/www.krypton.com sudo mkdir www # Folder for static content cd /home/www.earth.com sudo mkdir www # Folder for static content sudo addgroup \--gid 3100 wgkryptonian # Special work group to distinguish users who should have access to the website. sudo addgroup \--gid 3101 wgearthling cd /home sudo chown \-R serveradmin:wgkryptonian ./www.krypton.com/ sudo chown \-R serveradmin:wgearthling ./www.earth.com/ sudo chmod \-R 775 www.krypton.com # Only svradm and users in the kryptonian group can manage. Apache(other's) still need to be able to read and browse. sudo chmod \-R 775 www.earth.com |
...