Requirement: Statamic v2.x Version: 0.0.1 Alpha
This project has not been widley tested, and only works for sites have not been moved above the web root. Only use this if you have a good understanding of file permissions as this could break your entire website, if the permissions are set wrong.
A CLI tool to help correct & Secure file and folder permissions for Statamic
- Rename the folder
Permissions
and copy it to yoursite/addons
folder
- Change the seetings in your enviroment file (samples found in sample.env)
- Use
sudo php please permissions:fix
from the command line.
PERMISSIONS_LOCKED_USER
andPERMISSIONS_LOCKED_GROUP
should propaly be set to the user that you use to edit / deploy code.- Using the
PERMISSIONS_LOCK_STATAMIC
option will break the web updater, but some of us want to only be able to update Statamic via the CLI.