Internal error: mod_fcgid: can't get tmp dir

This error appears when I try to upload a file, even for small files (~80k).
Fresh install, a can’t figure out where I should configure to fix this, google does not help.

The site works just fine, only the file uploading doesn’t work.

I tried to force TMPDIR in php5.fcgi, SetENV in .htaccess, upload_tmp_dir in php.ini… I’m lost.

Debian GNU/Linux 7.4 (wheezy)

Server version: Apache/2.2.22 (Debian)
Server built: Feb 1 2014 21:26:04
Server’s Module Magic Number: 20051115:30
Server loaded: APR 1.4.6, APR-Util 1.4.1
Compiled using: APR 1.4.6, APR-Util 1.4.1
Architecture: 64-bit
Server MPM: Prefork

PHP 5.4.4-14+deb7u8 (cli) (built: Feb 17 2014 09:18:47)
Copyright © 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright © 1998-2012 Zend Technologies

I apreciate any help

chmod 1777 /tmp - fixed