WordPress upload fail – unable to create directory…


Error Message: Unable to create directory … {long directory path} … Is its parent directory writable by the server?

Cause: I recently changed hosting services so when I migrated my blog over to the new server everything worked great except for my WordPress uploads. Most things in WordPress are kept relative and ask the server where things are but the path to the upload files are kept in the database so if you change servers without changing the database string pointing to the correct directory you will get an error and probably frustrated also.

UPDATE 05/25/09

Thanks to a comment from Matt Lindsay I now realize that there is a much easier way to update the wordpress upload string in the database than digging into the actual database. A big thanks goes out to matt for making my blog better. ; )

Quicker and easier fix

  1. Login to your WordPress Admin
  2. Go to “Settings”
  3. Select “Miscellaneous”
  4. Put the correct path in the input field labeled “Full URL path to files”
  5. Save the changes and you should be done


The advantage I had in digging into the database is that when I switched hosting services only one of the folders in the path changed so I went in and just modified the one folder. This is nice if you don’t know the exact file path from the server root like me. ; )

Older more complicated fix:

  1. Login to your database for the WordPress blog.
  2. Browse/ view tables in the database created when setting up the blog
  3. Browse/ view table named “wp_options”
  4. In the “option_name” column look for “upload_path” (was #60 for me)
  5. Edit the row values and change to the correct path
  6. Save changes


After making that change the problem should be fixed and uploading will now work. If this helped be sure to give me a shout and leave a comment. Best of luck to you. ; )



I figured this out all on my own. ; ) #HappyGeek