There appears to be several reasons for this error. For me the solution was in looking at the apache error log.
open_basedir restriction in effect. File(/var/tmp) is not within the allowed path(s):
Add this to your apache config:
php_admin_value open_basedir "... /tmp:/var/tmp ..."
TD