WordPress on IIS 7.0 and the whole failed to write to disk saga

Filed under: Web — Steve @ 1:11 am

If you have migrated to Vista and are finding that when you try to upload an image on your local machine you are getting a failed to “write to disk error” then here is how I fixed the problem. I hope it helps

make a blank file called test.php and just put the following code into it

<?php phpinfo(); ?>

Now check to see where your upload_tmp_dir is pointing to. I had the problem of it saying not defined. So I created one in the C:/intepub/wwwroot called uploads and then opened my php.ini file and changed the following line

upload_tmp_dir = “C:\Inetpub\wwwroot\uploads”

*remember to uncomment it

Then apply the permissions to full in the security tab. Since then it has worked fine.

I have since had no problems on my local server uploading images or importing WXR files.

3 Comments »

  1. i don“t have a php.ini in my upload folder.. can you help me? i have the same problem with my wordpress.. and i try many thinks :-(

    KingG

    Comment by KingG — September 13, 2008 @ 8:49 am

  2. Is this on a live server or on your own machine

    Comment by Clarkey — September 21, 2008 @ 4:14 pm

  3. Hi KingG,

    Yes, you do have php.ini in windows folder.
    1. START — RUN –
    2. Under RUN — type cmd
    3. type php.ini
    3. you will see your php.ini

    Easy!

    Comment by Gena — January 3, 2009 @ 3:09 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment