Fix Unable to create directory with Wordpress

I’m having issues uploading images to to a post. I keep getting the following error:

Unable to create directory /var/www/vhosts/domain.com/httpdocs/wp-content/uploads/2008/05. Is its parent directory writable by the server?

1. Firstly, on my test install, file uploads wouldn’t work and I got the “HTTP Error”. This was fixed with the addition to the .htaccess (in the top level of your Wordpress install).

I added the first four lines below to my .htaccess, so this is what I ended up with.

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

2. Second: I am using WP 2.6. I CH’MOD (777) the following directories:

I found: wp-conten/ uploads, If not create this folder name:  uploads

I then went to Settings > Miscellaneous > Full URL path to files (optional)

I put in: http://asia-dns.net/wp-content/uploads

And made sure my uploads were set to:

wp-content/uploads

Testing Success this problem, Reupload and test on your upload site. Done

Sponsor links

Tags: , ,


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.

AddThis Social Bookmark Button
1 Star2 Stars3 Stars4 Stars5 Stars (11 votes, average: 4.45 out of 5)
Loading ... Loading ...

One Response to “Fix Unable to create directory with Wordpress”

  1. Развейте тему дальше. Интересно узнать подробности!!!

Leave a Reply

Random Articles