Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I run apache2 on Ubuntu, i'm sure there is a configuration or permission problem causing this. When I attempt to update plugins through the admin control panel, after I enter the FTP login/pass and click Proceed. I get the error "Unable to locate WordPress Content directory (wp-content)."

And wp-content does exist and have proper permissions from the default install.

share|improve this question

3 Answers 3

up vote 3 down vote accepted

I ended up using code from this post on WordPress.org http://wordpress.org/support/topic/upgrade-plugin-unable-to-locate-wordpress-content-directory-wp-content?replies=11#post-1329826

Place this into my wp-config.php file

if(is_admin()) {
    add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
    define( 'FS_CHMOD_DIR', 0751 );
}
share|improve this answer
    
This code help to me, but I placed it to functions.php in my theme folder. –  Denis Apr 11 at 11:02

The FTP user account likely does not have access to the wp-content directory. Are you able to access wp-content using an FTP client with the same user account?

Another solution is to change the owner of wp-content to www-data. You can do this from the command line by running chown www-data:www-data wp-content/ -R

share|improve this answer
    
Yes I am able to FTP in with that account and view the files. I tried changing owner as you suggested for that directed recursive but still getting the error. –  Anagio Nov 30 '11 at 7:59

Can you try changing ownership via SSH or sFTP.

Here is the command: chown -R username *

replace username with your actual primary username that you use to login to your cPanel or FTP.

Once you have done this please change the permission of your wp-content as mentiones by @Chris_O

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.