The PHP safe_mode is not enabled.
The test folder could be created (owner: www-data, chmod: 755).
The test file could be created (owner: www-data, chmod: 644).
The PHP process is allowed to create files on this server.
Go back