I keep getting this error when trying to configure the upload directory with Apache 2.2 and PHP 5.3 on CentOS.
In php.ini:
upload_tmp_dir = /var/www/ht
Try this:
open /etc/apache2/envvars
sudo gedit /etc/apache2/envvars
replace www-data with your your_username
www-data
your_username
"export APACHE_RUN_USER=www-data"
replace with
export APACHE_RUN_USER='your_username'