[wp-trac] [WordPress Trac] #32345: FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR are not considered when using built in ssh2/sftp

WordPress Trac noreply at wordpress.org
Tue May 12 07:19:50 UTC 2015


#32345: FTP_BASE, FTP_CONTENT_DIR, FTP_PLUGIN_DIR are not considered when using
built in ssh2/sftp
-------------------------------+------------------------------
 Reporter:  aberbenni          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Upgrade/Install    |     Version:  4.2.2
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  administration
-------------------------------+------------------------------

Comment (by aberbenni):

 I have sftp/scp access to the main wp folder with a chrooted user. Every
 time I try to update I receive the error:

 {{{
 Unable to locate WordPress Content directory (wp-content)
 }}}

 Digging into the code I found that wp was looking for
 /var/www./www.mysite.com/htdocs/wp-content

 Adding this configuration should solve the problem:
 define('FTP_BASE', '/');
 define('FTP_CONTENT_DIR', '/wp-content/');
 define('FTP_PLUGIN_DIR', '/wp-content/plugins/');

 But this works only for FTP.

 The configuration of the server is explained here:
 https://wiki.archlinux.org/index.php/SFTP_chroot

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32345#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list