[wp-trac] [WordPress Trac] #51170: FTP automatic updates are not RFC 959 compliant for NLST command

WordPress Trac noreply at wordpress.org
Fri Apr 1 00:30:23 UTC 2022


#51170: FTP automatic updates are not RFC 959 compliant for NLST command
----------------------------+-----------------------
 Reporter:  giox069         |       Owner:  afragen
     Type:  defect (bug)    |      Status:  assigned
 Priority:  normal          |   Milestone:  6.0
Component:  Filesystem API  |     Version:  3.7
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------

Comment (by costdev):

 For those who want to test the patch, you can download, install and
 activate the attached
 [https://core.trac.wordpress.org/attachment/ticket/51170/test-ftp.zip
 test-ftp] plugin.

 == Instructions

 It's recommended to set up a new user on your system for FTP.
 Use a guide online that shows how to do this for your system.

 Make sure you have an FTP server running.

 For vsftpd:
 {{{
 sudo apt update -y
 sudo apt install vsftpd -y
 sudo service vsftpd start
 }}}

 For PureFTP:
 {{{
 sudo apt update -y
 sudo apt install pure-ftpd -y
 sudo service pure-ftpd start
 }}}

 If testing multiple FTP servers, make sure to run this between tests:

 {{{
 sudo service <name_of_unwanted_FTP_server> stop
 sudo service <name_of_wanted_FTP_server> restart
 }}}

 Use this to verify which server is running ( "+" means running ):
 {{{
 sudo service --status-all
 }}}

 Add the following to wp-config.php:

 {{{
 define( 'WP_DEBUG', true );
 define( 'WP_DEBUG_LOG', true );
 define( 'FS_METHOD', 'ftpext' ); // Or 'ftpsockets'.
 define( 'FTP_BASE', '/var/www/html/wordpress-develop/src/' ); // Or the
 root of your WordPress installation.
 define( 'FTP_USER', 'FTP_USER' ); // Change to your ftp user's username.
 define( 'FTP_PASS', 'password' ); // Change to your ftp user's password.
 define( 'FTP_HOST', 'localhost' );
 define( 'FTP_SSL', false );
 }}}

 The plugin will output the results to `wp-content/debug.log`.

 Please report your results.

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


More information about the wp-trac mailing list