Page 1 of 1

Wordpress & mediawiki both throw error when trying to upload

Posted: Fri Aug 06, 2010 11:01 am
by AdamJ
I'm using WP 2.9.2, MediaWiki 1.15.4, PHP 5.3.2 (cgi-fcgi), MySQL 5.1.32-community, on Windows WebServer 2008 with IIS7, and when I try to upload a file, I just get an internal error message like "Could not find file "C:\phpup\php[random characters].tmp"." I have uploads allowed in localsettings.php, the test uploads are small files (less than 100k), I have permissions Full Control for Everyone set for the C:\phpup directory. What else can I do?

Re: Wordpress & mediawiki both throw error when trying to up

Posted: Fri Aug 06, 2010 1:13 pm
by Doug G
Add the IIS user account to the permissions. Everyone group usually doesn't include the IIS anonymous user account.

Re: Wordpress & mediawiki both throw error when trying to up

Posted: Fri Aug 06, 2010 2:11 pm
by AdamJ
Internet Guest Account (HOSTNAME\IUSR_HOSTNAME) also has full control permissions.

Re: Wordpress & mediawiki both throw error when trying to up

Posted: Sat Aug 07, 2010 3:36 pm
by Doug G
Maybe you haven't properly configured the upload directory in php.ini, or maybe you need to review permissions on that directory too. In addition, you may need to adjust permissions in c:\php and the windows %TEMP% directory.

Oh, you did check permissions already in the upload directory. My guess is still that the server is unable to write the temporary uploaded file for some reason.

Re: Wordpress & mediawiki both throw error when trying to up

Posted: Wed Aug 11, 2010 7:54 am
by AdamJ
The directory described in the OP is the upload_tmp_dir, I see in the directory the files existing, but being 0 bytes. Trying to figure out why the server can't seem to write to them.

Edit, no wait, the 0 byte files are in the session save temp directory.