title: label: Server & Software Setup order: 100 authors:
- name: Charl Cronje email: charl@webally.co.za link: https://blog.webally.co.za avatar: https://assets.webally.co.za/avatars/darker.jpg edit: repo: "https://github.com/charlpcronje/setup.docs.devserv.me/edit/" base: /src branch: main label: Edit on GitHub editor: enabled: false favicon: favicon.png links:
- text: Projects Portfolio link: https://webally.co.za/projects
- text: Wiki, Tips and Docs link: https://docs.webally.co.zao.za
- text: Resume link: https://cv.webally.co.za
- text: LinkedIn link: https://www.linkedin.com/in/charlpcronje
- text: GitHub link: https://github.com/charlpcronje
- text: Upwork Profile link: https://www.upwork.com/freelancers/~01ccb1439024ec9c50 footer: copyright: "webAlly © Copyright . All rights reserved."---
#
Grant Permissions
All the files and directories are owned by the root
user. If you want to allow the other user to access and modify the files in the Document Root then you can change the ownership with the chown
command.
chown -R apache:apache /var/www/securezone.co.za/public_html
chown -R apache:apache /var/www/api.securezone.co.za/public_html
Now we have to change the permission to ensure that read permission allowed to the general web directory. So, that all the content inside the public_html can be served correctly.
sudo chmod -R 755 /var/www