Error when Installing (problem writing temporary file)

When trying to install piwik i get the errormessage “problem writing temporary file 'tmp/templates_c/wrt4a4342f718c8c”.
Tried several suggestions like removing the templates_c folder and recreate it with chmod 0777. Tried setting the smarty->compile_dir to the absolute path.
All of them didn’t work.
I checked what happens in the templates_c folder.
During installation some temp-files are created with chmod 777 and some only have chmod 600. This seems quite strange to me.

Anybody anymore suggestions how to solve that problem?