Join the community today
Become a Member

pure-ftpd login problem with .08 beta

Discussion in 'Beta release code' started by Cr0w, Mar 31, 2015.

  1. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    so can't fix it ?
    would you working on it ? for updating centminmod beta08 ? :(
    i need this . can't use sftp

     
    Last edited: Apr 1, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yeah need to work on it to figure out what the problem is
     
  3. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    how much take long ? FTP Is must important tool for my work
     
  4. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    working on it now, but I only work on Centmin Mod in my free time so hard to say. I have pinpointed some fixes to make just testing them now.

    Btw, can you confirm pure-ftpd service is actually running for me

    Code:
    service pure-ftpd status
     
  5. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    i stop it and installed vsftpd can work with CentminMod ?
     
  6. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    as per my reply to your post at I need ftp server with Centminmod | Centmin Mod Community vsftpd will work just not user isolation so any ftp user will have access to other accounts as explained at I need ftp server with Centminmod | Centmin Mod Community

    if you need user isolation in FTP, then pure-ftpd feature in .08 beta is only way

    I already commited the pure-ftpd fix to .08 beta 02 branch code at fix pure-ftpd configuration routine for missing files · centminmod/centminmod@1fdcbfd · GitHub

    You can run this command line to run a script to try and fix pure-ftpd and then you will need to manually re-create all pure-ftpd virtual FTP users as per the instructions at end of the script output

    run command/script
    Code:
    curl -sL https://bitbucket.org/snippets/eva2000/B89b/raw/master/pureftp_fix.sh | bash
    example of output and instructions for manually re-create all pure-ftpd virtual FTP users
    Code:
    curl -sL https://bitbucket.org/snippets/eva2000/B89b/raw/master/pureftp_fix.sh | bash
    
    ensure TLS Cipher preference protects against poodle attacks
    
    create /etc/pure-ftpd/pureftpd.passwd
    
    check tweaks in /etc/pure-ftpd/pure-ftpd.conf
    VerboseLog                  yes
    UnixAuthentication            yes
    # UnixAuthentication can be used only once, but they can be combined
    # together. For instance, if you use MySQLConfigFile, then UnixAuthentication,
    PassivePortRange    3000 3050
    CreateHomeDir               yes
    # 0 : disable SSL/TLS encryption layer (default).
    # 2 : refuse connections that don't use SSL/TLS security mechanisms,
    # 1) Your server has been compiled with SSL/TLS support (--with-tls),
    TLS                      2
    TLSCipherSuite           HIGH:MEDIUM:+TLSv1:!SSLv2:!SSLv3
    
    
    pure-ftpd installed
    Stopping pure-ftpd: [  OK  ]
    Starting pure-ftpd: [  OK  ]
    
    check /etc/pure-ftpd/pureftpd.passwd
    -rw------- 1 root root 0 Mar 31 17:52 /etc/pure-ftpd/pureftpd.passwd
    
    check /etc/pure-ftpd/pureftpd.pdb
    -rw------- 1 root root 2.1K Mar 31 17:52 /etc/pure-ftpd/pureftpd.pdb
    
    end of output will show
    Code:
    #########################################################################
    # Fix completed
    #########################################################################
    because /etc/pure-ftpd/pureftpd.passwd was missing, you will need to
    manually re-create your pure-ftpd virtual FTP user accounts for existing
    nginx vhost accounts using below 3 commands:
    
    where YOURUSERNAME = your FTP username
    where YOURDOMAINNAME.com = your existing domain name Nginx vhost
    #########################################################################
    # 3 commands to manually re-create virtual FTP users
    #########################################################################
    
        pure-pw useradd YOURUSERNAME -u nginx -g nginx -d /home/nginx/domains/YOURDOMAINNAME.com
        pure-pw mkdb
        service pure-ftpd restart
     
  7. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    directory must be : -d /home/nginx/domains/mashtyha.com or -d /home/nginx/domains/mashtyha.com/public ?
     
  8. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    top level of your Nginx vhost at
    Code:
    -d /home/nginx/domains/mashtyha.com
     
  9. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    thanks . finally done , but i still have problem with wordpress ftp , i want to transfer my attachments to img.mashtyha.com subdomain , its very important and helps my seo website , but Wordpress FTP Plugin Does't supports FTP Explicit (SSL) What should i do ? :(
    i try cuteFTP Its work fine but not working on wordpress
    i set
    should i change it ?
     
  10. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  11. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    it should be
    Code:
    -d /home/nginx/domains/mashtyha.com
     
  12. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    so there is no way to fix that problem with wordpress ?
    ok i will change it to main directory . by the way thanks for help me to fix my problems , you are the best developer in linux ;)
     
  13. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  14. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
  15. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  16. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    Code:
    
    /**
    
    * For developers: WordPress debugging mode.
    
    *
    
    * Change this to true to enable the display of notices during development.
    
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    
    * in their development environments.
    
    */
    
    define('WP_DEBUG', false);
    
    
    
    /* That's all, stop editing! Happy blogging. */
    
    
    
    /** Absolute path to the WordPress directory. */
    
    if ( !defined('ABSPATH') )
    
        define('ABSPATH', dirname(__FILE__) . '/');
    
    
    
    /** Sets up WordPress vars and included files. */
    
    require_once(ABSPATH . 'wp-settings.php');
    
    define('FS_METHOD','direct');
    
     
  17. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    the problem is Explicit connection , W3 total Cache Does't support that ability !
    i have't any problems with wordpress updates my problem is Connecting to FTP Via Wordpress
    i want to make an Self-Hosted CDN ;) Thats need a ftp connection to transfer js and css files to Test Page for the Centmin Mod Nginx HTTP Server
     
  18. eva2000

    eva2000 Administrator Staff Member

    47,294
    10,705
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,631
    Local Time:
    4:16 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    what feature in W3 Total Cache requires ftp connection ? for setting up CDN you mean ?
     
  19. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    look at the pic ,
    [​IMG]
    this is Self-hosted CDN Config
    thats must connect with ftp , after connection will be alerted by Green spoiler , now you'll see red
     
  20. Cr0w

    Cr0w Member

    165
    9
    18
    Mar 17, 2015
    Iran
    Ratings:
    +13
    Local Time:
    9:46 PM
    1.9.x
    5.5
    uhh , i found it the porblem was solved by disabling TLS On Pureftpd i have set connection type to non-ssl and its fixed
    but the new problem :(

    Error: Test directory was made in your site root, not on separate FTP host or path. Change path or FTP information: test_dir_680a4981bb6ad5b243ae2154716ec92a.