WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem With Upload ! (4 posts)

  1. Nirjhar Lo
    Member
    Posted 1 year ago #

    Hello

    I see following error:
    "Unable to create directory wp-content/uploads/2013/01. Is its parent directory writable by the server?"
    while trying to upload an image to change background of my newly installed theme.
    I created the theme and was testing it on localhost. I put in my functions.php the following tags:
    <?php add_theme_support( 'custom_header' )?>
    <?php add_theme_support( 'custom_background' )?>
    to enable customarization options. Everything else is working fine even the custom header and background colors.

    I am using LAMPP (XAMPP 1.8.1) on 32bit ubuntu 12.10 LTS.
    I will appriciate any clue or help.

    Thanks in advance.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Try changing the permissions on the wp-content directory to 766. If you still have problems, try 767, 775 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

  3. Nirjhar Lo
    Member
    Posted 1 year ago #

    Thanks a lot !!

    The problem is solved in 2 minutes by using 777, in my FTP client Filezilla. But I would like to note an important issue to other users, who will face this same trouble in future.
    Using 766 you will block group and public permission to execute the content in targated directory. As a result you will face problem in WordPress admin panel, such as theme not showing etc.. It is a suggestion not to stop public write permission and public execute permission at localhost of your Linux system. So, better use 777.

    Thanks @esmi.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    No problem. Glad to hear that you've managed to sort out your permissions. :-)

    FWIW, the exact chmod/permissions level does vary from server to server - which is why we usually recommend starting with the lowest level and working upwards. However, if in doubt, you can always ask your hosts for assistance.

Topic Closed

This topic has been closed to new replies.

About this Topic