Wordpress & mediawiki both throw error when trying to upload

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
AdamJ
Forum Newbie
Posts: 3
Joined: Thu Aug 05, 2010 12:19 pm

Wordpress & mediawiki both throw error when trying to upload

Post 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?
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

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

Post by Doug G »

Add the IIS user account to the permissions. Everyone group usually doesn't include the IIS anonymous user account.
AdamJ
Forum Newbie
Posts: 3
Joined: Thu Aug 05, 2010 12:19 pm

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

Post by AdamJ »

Internet Guest Account (HOSTNAME\IUSR_HOSTNAME) also has full control permissions.
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

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

Post 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.
AdamJ
Forum Newbie
Posts: 3
Joined: Thu Aug 05, 2010 12:19 pm

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

Post 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.
Post Reply