I was having some trouble a while back uploading media to my WordPress install. I would continually get an error stating that the media couldn’t be moved to the correct folder. I had tried all the forum solutions including even changing permissions to 777. Nothing seemed to work. After stumbling across a few threads on wordpress and finding a Mediatemple community wiki article I came up with a solution.
First I needed to enable fastCGI for my domain that I was having issues with. Mediatemple has an excellent article on how to do that:
After enabling fastCGI I noticed my website was broken. I was getting a 503 error after about waiting 30 seconds for the page to load. After googling around I found the following article on how to resolve some of the common problems faced when enabling fastCGI on a DV server:
Issuing the following command as root via ssh solved the problem:
chown apache:apache /var/run/mod_fcgid/sock && service httpd restart