the directory will most of the time be created as 0755 anyway because mkdir applies the umask on the permission you give. This is why Symfony uses 0777 to let the flexibility to the user. As the default umask on most distributions is 0022, the behavior is the one you expect