WordPress Plugin Upgrade Failed Solution

I ran into this error: “Unable to locate WordPress Content directory (wp-content).” after upgrading the Linux distro on my server. Nearly every solution I found was to add a custom block of code to wp-config.php that would no longer require you to give the FTP credentials. I found this unappealing because I have multiple WordPress installations and I didn’t want to hack each one.

Instead I continued banging my head against the problem. WordPress and the permissions hadn’t changed so it had to be something in the environment. The two prime suspects were PHP and vsftpd, and vsftpd was it. SSL was enabled but I had to disable require_ssl_reuse in /etc/vsftpd.conf. I learned this by watching the log with debug_ssl and log_ftp_protocol enabled during a plugin upgrade attempt.

All it took was a quick restart of vsftpd and automatic plugin upgrades are working again with FTPS.


 (Post a comment) | Comments RSS feed
  1. Excellent!

    It took time to get here, as I desperately wanted to get it to work without hacking, but it was worth of it.

    Worked for me also.

    Comment by Roland on October 16, 2010 @ 2:53 pm
  2. @Roland That’s great! It’s the main reason I posted my solution.

    Comment by Dan on October 16, 2010 @ 3:18 pm

Comments are closed