Learn

File Creation Settings

Change default file and folder permissions for items created by Statamic.

Being a flat-file system, Statamic reads and writes quite a few files on your webserver. Statamic uses file mode 0755 for the files that it writes, and uses PHP’s default umask setting when creating files. (Learn more about umask on Wikipedia.) We’ve discovered, however, that in some cases these values may not work for all servers.

If your server is one of those cases, fear not. As of v1.8.4, you can now set the values Statamic should use within your settings.yaml file.

Settings

Listed in the order in which you’ll find them in your settings file.

_umask

The umask setting to use for all file writing. This is set to 0022 by default.

_mode

The default file permissions to use for when files are written. This is set to 0755 by default.

This article was last updated on September 13th, 2016. Find an error? Please let us know!