• Resolved Nir

    (@nirjhar_lo)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.
    https://codex.www.ads-software.com/Changing_File_Permissions

    Thread Starter Nir

    (@nirjhar_lo)

    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.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem With Upload !’ is closed to new replies.