• I am having problems uploading pictures using ADD NEW media module in th admin panel.

    I am also having problems with FTP to my server….just in case this is helpful.

    I am able to update plugins using the FTP connection inside of wordpress.

    The error I get when I attempt to upload a new picture is the following:

    “picture.jpg” has failed to upload due to an error
    Unable to create directory /var/www/html/wp-content/uploads/2011/03. Is its parent directory writable by the server?

    I should mention that my site is installed in the HOME directory of Ubuntu linux 10.10 and the files and directories are owned by www-data:www-data.

    Any ideas as to why I see this error?

    Why am I not seeing an error pointing to the home/USER/www/website directory?

Viewing 2 replies - 1 through 2 (of 2 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.
    http://codex.wordpress.org/Changing_File_Permissions

    Thread Starter spineless

    (@spineless)

    Ok So I tried changeing the directory wp-content to permission 777 and I still go tthe same error.

    Tne wp-content is located in my HOME directory and apache2 is pointing to that directory from the VAR. There are three directories that could be the issue.

    /var/www/html/wp-content/uploads/2011/03

    These are system directories var/html/www.

    What would happen if I change the permission on the one of these directories.

    1. The html directory is perplexing. I do not know where this directory is. It is not in www and it is not in my home directory above wp-content.

    2. The next directory up is the www directory and it has a permission of 755 and contains one file this is the defaul “It works” index.html

    I could change the permission on this directory to something higher within much problems I think.

    2. The next level up is the var directory. I think it would be a very bad idea to change the permission on this directory. Its permission is set to 766 right now.

    The link you provided did not give me any new information. Any ideas how I should proceed?

    Thanks,

    spineless

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

The topic ‘Cannot upload pictures’ is closed to new replies.