• Home
  • About
  • Portfolio
  • Hire me
  • Templates
blog.lopau.com

Just Another Dang Blog

A tech blog about web development, graphic designs, freelancing, cloud computing, mobile development, innovations and seo.
Welcome to lopau.com - a digital playground, online portfolio, web experiments and blog of Paulo Orquillo
« Increase your Pagerank or PR
Financial Crisis affects on Adsense Publishers »
Oct 30
WordPress error- Is its parent directory writable by the server?

Been using WordPress now for about 4 months on my projects and I occasionally find problems with plugins and themes but not on WordPress itself. I seem to be getting good at troubleshooting some.

Yesterday my host changed servers, then I upgraded to the latest version of WordPress and everything got whack on uploading images in the admin with this error.

Unable to create directory /home/username/public_html/wp-content/uploads/2008/05. Is its parent directory writable by the server?

Most people encounter the error after upgrading WordPress or changing servers

Here are troubleshooting steps you can do.
1. With the error above, it can be assumed it is a permission problem with the folder. Default is 755, With your FTP software or WebFTP, edit the uploads folder in the wp-content to 777. Then try again.

2. If that doesn’t work, it can be an ownership issue. Wherein the owner of the files is apache and not your user account.

If you have access to SSH, you can edit the file to change ownership to

chown -R username:apache_user /home/username/public_html/wp-content/

username:apache_user for me is the ftp account, others are different.

3. If this doesn’t work. Check the upload path in the admin – Settings – Miscellaneous and make sure it is wp-content/uploads sometimes the upgrade or server move changes it to the absolute path.

The 3rd solution worked for me. Hope you find this useful


This entry was posted on Thursday, October 30th, 2008 at 10:52 am and is filed under Tutorials, Wordpress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

28 Responses to “WordPress error- Is its parent directory writable by the server?”

  1. Saras Says:
    November 16th, 2008 at 11:20 am

    Good for wordpress resource.

  2. Danny Says:
    December 18th, 2008 at 2:07 am

    Wow thank you!

    Finally someone who explained the problem in a easy to understand way.

    I owe you a favour – shoot me an email if you need any socail media help.

    Thanks again

    Danny

  3. lopau Says:
    January 4th, 2009 at 7:45 am

    You’re welcome Danny. Glad to have helped.

  4. tiherp Says:
    January 24th, 2009 at 1:32 pm

    Nice site and information……Few days ago one of my WP article directory site was not working well with its additional plugins……Do you have any idea…….why did this happen?

    Now all are normal……but few of my submitters took u turn………I found this site informative….so looking for someone…..who will response this problem.

    Happy Chinese New Year though.

  5. Miguelitto Says:
    February 27th, 2009 at 7:00 am

    Thank very much, the third solution worked for me too

  6. MS Says:
    March 7th, 2009 at 6:09 am

    check if your web server has php safe mode disabled. if it is turned on, the upload will fail even if the file permissions are set correctly.

  7. Window Panel Says:
    March 10th, 2009 at 1:09 am

    In my one website i have same problem: “Unable to create directory /home/username/public_html/wp-content/uploads/2009/01. Is its parent directory writable by the server?”

    These type of error you can solve by below steps as per my experience

    - First pass 777 permission to WP-content & also too upload folder and its sub folder
    - Then moves to your admin section where you can find setting option, in this section check “Miscellaneous’ for uploading path ( This is the main problem please check it again)
    - After this please create folder which are mention in your error. as per above mention error i have to create “2009? and also a subfolder with name “01?
    - Now try to upload image…

    Best Luck!!

  8. ice_hot Says:
    March 19th, 2009 at 7:15 am

    finally… i was able to upload pics… thanks man!!!

  9. Anthony Wakefield Says:
    March 28th, 2009 at 5:38 am

    Too Easy, Option 3 works for me too. Thanks for putting this up!

    Anthony

  10. Kichi Says:
    May 11th, 2009 at 8:14 am

    Many thanks, it works now!

  11. Joe Says:
    May 11th, 2009 at 2:15 pm

    Wow, you are amazing. I totally forgot about there being a setting for the upload path. I was having way to much trouble… sometimes things are simpler than they seem.

    Thanks so much =]

  12. Elavarasi Says:
    June 29th, 2009 at 8:02 am

    Thank you that helped me solve my trouble. My case was the third reason

  13. Shawn Says:
    June 29th, 2009 at 10:22 pm

    If you’re on a Plesk server with RHEL, the following should work (and preserve security):

    mkdir wp-content/uploads
    chown -R apache:apache wp-content/uploads
    chmod -R 744 wp-content/uploads

  14. karito Says:
    July 1st, 2009 at 1:44 pm

    In my one website i have same problem: “Unable to create directory /home/username/public_html\wp-content\uploads\20097. Is its parent directory writable by the server?”

  15. xphunt3r Says:
    July 6th, 2009 at 4:34 am

    thanks for the third one it works for me…………..

  16. Web Browser Says:
    July 10th, 2009 at 12:59 pm

    Very nice guide! Worked out well for me, keep it up :)

  17. Mayank Says:
    November 15th, 2009 at 11:27 pm

    I am facing the same problem on my couple of production domains. Lets see which of these solutions works for me.

  18. Tim Says:
    June 9th, 2010 at 12:39 pm

    I had this problem and spent several hours reading posts about with no luck. My permissions were right and the upload folder path was correct.

    I realised that it was a SELinux issue for me. If you run SELinux then you will need to run the command below to allow apache (httpd) to execute particular PHP commands, including creating new files and folders. Here is the command:

    chcon -R -t httpd_sys_content_t

    Hope that helps someone else. This was driving me crazy and I was about ready to give up and uninstall WordPress. Glad it didn’t come to that.

  19. m@ Says:
    June 28th, 2010 at 6:26 pm

    Just a heads up that 777 permissions allow all kinds of security risks. Most webhosts will never recommend changing anything to these permissions as it allows you and the rest of the world full access to your folders. From there things like malicious scripts among other things can be uploaded.

  20. levani Says:
    July 5th, 2010 at 11:38 pm

    I had the same problem too, my hosting provider moved my site to a new server and I was unable to upload images any more. The 3rd solution worked for me. If you ever have the same problem, make sure the upload directory is exactly wp-content/uploads.

  21. Tim Harold Says:
    July 7th, 2010 at 10:03 am

    Option 3 worked great for me, thanks!!

  22. Neal & Associates » Blog Archive » How to fix: “Unable to create directory” Error for Media Uploads on Wordpress 3.0? Says:
    July 17th, 2010 at 3:32 am

    [...] it was back to google and I stumbled across this excellent article, which gave me a few other ideas. It was point [...]

  23. world.nse2rich Says:
    August 20th, 2010 at 7:32 am

    thanks pal
    i faced Same problem today
    this post was life saver
    And I solved it by settings uploads (third option)

    regards

  24. N Y Says:
    October 13th, 2010 at 4:24 am

    Miscellaneous Settings isn’t there in WP-ADMIN…how i add this in settings

  25. True Says:
    November 22nd, 2010 at 10:48 pm

    The 3rd solution worked for me. Hope you find this useful

  26. Faraz Says:
    February 16th, 2011 at 8:36 pm

    Thanks man… The 3rd solution worked for me… life saver :-)

  27. Kat Landreth Says:
    October 10th, 2011 at 10:51 pm

    THANK YOU!! I really appreciate that you took the time to write this post. It’s kept me from tearing my hair out :) Thanks again!

  28. Dota Blog Says:
    December 17th, 2011 at 1:53 am

    Its not working for me :(
    i still getting the error

Leave a Reply

  • Popular Posts

    • Fixing power problems with your LG Flatron Monitor (LG1753S)
    • Finally passed my Force.com Certified Developer Exam
    • DIY: HP Laptop Power Adapter Repair
    • How to Setup PHP, MySQL and phpMyAdmin on Mac OS X Snow Leopard
    • Setup EC2 and FileZilla with PPK file on Mac OS X
    • Safari Bug on Lion: The application Safari canceled restart

    Recent Comments

    • Swati: I am planning to write dev 401 next month.Could you please send me the materials and dumps that you have.My...
    • Apex: Great tut,Thanks
    • matt: Never been a fan of Steve Jobs or Bill Gates as they do seem to steal other peoples ideas then use them as...
    • Ash: I encountered the same issue, I went to activity monitor, checked on windowed processes and force killed Safari,...
    • lasersoul: Hi Guys Similar problem with a LG W2452T near enough to effect the fix in the same way. 4 bulging...
    • Ione Bentler: Actually there is another alternative. Get a refund. That’s what I did. I was so pissed off that...
    • Recent Posts

      • R.I.P Steve Jobs, Stay Hungry Stay Foolish
      • Inkling by Wacom
      • Create a Web Service using SOAP
      • 3D Augmented Reality platform(QR+AR) for iPhone, iPad, Android, BB
      • Create rewrite rules for friendly url for WordPress plugin custom queries
    • Blogroll

      • Abiel Online
      • Abiel's Tech Blog
      • Copongcopong’s Notes from Walk the walk
      • Get Rich Talks
      • Javi’s Go Blog
      • The Passionate Pilgrim’s Musings and Ramblings
      • Tinokla’s Scribbles and Doodles
    • Links

      • LS Blogs
      • Pampanga Province Websites
      • Top Blogs Philippines
      • Travel and Gobble
    • Proudly Pinoy!
    • Add to Technorati Favorites
    • Web Development & Design - Top Blogs Philippines

    • Sponsored Ads

      Summer Savings! $7.49 .com
      Ensogo
    • Categories

      • Adsense
      • Airsoft
      • Android
      • apple
      • Blogs
      • Browsers
      • Cloud Computing
      • CSS
      • Desktop Publishing
      • Facebook
      • Firefox
      • Flex
      • Fonts
      • Free WP Templates
      • Freelance
      • Google
      • Hardware
      • HTML 5
      • iOS
      • Ipad
      • iPhone
      • IT
      • Javascript
      • microsoft
      • Mobile Development
      • Online Scams
      • Others
      • Personal
      • Personal Finance
      • Photography
      • Photoshop
      • PHP
      • Political
      • Projects
      • SalesForce
      • Security
      • SEO
      • Social Marketing
      • Travelling
      • Troubleshooting
      • Tutorials
      • WAMP
      • Web Resources
      • Wordpress
    • Tags

      Adsense among ed andriod apache apple blogging Blogs Cloud Computing CSS cuil development earn online enable gd library Firefox Fonts force.com Freelance godaddy Google google analytics government increase traffic internet fraud internet scams iPhone knol knowledge content Money mysql online purchase page rank pagerank PHP politics pr search engines SEO social media content social networks text browser themes web traffic western union Wordpress zend certification

    Just Another Dang Blog is proudly powered by WordPress
    Entries (RSS) and Comments (RSS).
    Valid XHTML 1.0 Transitional Valid CSS!