• Resolved blirette

    (@blirette)


    Hi,

    I’ve got a 3.0.4 WP installed and activated the MU setting. Everything is “a-ok” except when I try to upload a “media” or an image to a post. I get the message “Unable to create directory [insert directory path here] Is its parent directory writable by the server?”.

    I’ve bben googling like hell since yesterday and didn’t get anything to work. he things I’ve tried are :

    – creating the folder “blogs.dir” and “2”
    – changing the permissions to 755
    – creating an “upload” folder in the “wp-content” folder and using the permissions 755

    Anyone knows how to fix this issue?

    Thanks in advance, happy new year!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Change the permissions on the wp-content directory to 766. If you still have problems, try 767 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
    http://codex.wordpress.org/Changing_File_Permissions

    Thread Starter blirette

    (@blirette)

    Wow. I don’t know why but it worked. Thanks! I was sure I tried that before…

    Let me sum it up in case someone come up with the same problem.

    Permissions needs to be like that :

    755 <– wp_content
    755 <– wp_content/uploads
    755 <– wp_content/blogs.dir
    755 <– wp_content/blogs.dir/2
    777 <– wp_content/blogs.dir/2/files

    By the way, I needed to create those folders manually probably because at first my “wp_content” didn’t have a right permissions.

    Also, I’m not sure if this helped but I made sure the tables in the database were like this :

    Table names : wp_options AND wp_2_options
    row : option_name –> column : upload_path –> value : wp-content/uploads
    row : upload_url_path –> column : upload_path –> value : 0

    If you don’t do this, maybe your user will be able to upload but not the admin or vice-versa so be sure to test logged as both users.

    Have fun! 😀

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can't add "medias", can't create folder error’ is closed to new replies.