Whitescreen related to locale

This depends on the server. The important thing is to know what user is executing php and does that user have the permission to write to the folder. This permission could be based on the user or the group. See more details here: How should file permissions be set?