Unable to fix the error

Status
Not open for further replies.

MDSandB

Compbizz.com
Aug 3, 2007
1,306
3
0
www.compbizz.com
Hi All,

I recently bought a new hosting (shared) and added 3 domains on it. I installed WP on all and when i go in to upload the content (which is an xml file) via the Import link under Manage tab i get the following error

Unable to create directory /home/abc/public_html/xyz.info/wp-content/uploads/2008/01. Is its parent directory writable by the server?


I went in file permissions n checked the file permissions of uploads under wp-content it was 777 so i changed it to 755 still no go. Can some help me?

MDSandB
 


make sure that the wp-content directory is at least 755. Needs to be executable and readable ( 5 ).

Make sure that wp-content/uploads is 777 or, preferably, 755 and owned by the user that apache runs under.

Easiest way to figure that out is run it as 777, upload a file, check the ownership of that file ( who owns that file ) and chown the dir to that user, then chmod to 755 the uploads directory. Then test by uploading another file.
 
Examples:

$ ls -la public_html
(snip)
drwxr-xr-x 6 arghwebw arghwebw 4096 Jul 4 2007 wp-content
(snip)

$ ls -la public_html/wp-content/
(snip)
drwxr-xr-x 3 arghwebw arghwebw 4096 Jul 5 2007 uploads
(snip)

$ ls -la public_html/wp-content/uploads
drwxr-xr-x 4 arghwebw arghwebw 4096 Nov 26 12:54 2007
 
Status
Not open for further replies.