Want more timely Centmin Mod News Updates?
Become a Member

Xenforo Install and Upgrade by Waindigo Xenforo Addon - FTP Login Details

Discussion in 'Forum software usage' started by eva2000, May 3, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    30,961
    6,918
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,420
    Local Time:
    9:05 PM
    Nginx 1.13.x
    MariaDB 5.5
    Thread created to discuss Waindigo's Install and Upgrade Xenforo Add's FTP Login Details setup with Centmin Mod .08 beta 02's pure-ftpd virtual FTP users as mentioned by @Jake at Centmin Mod .08 beta + pure-ftpd virtual FTP user support | Page 2

    You might have similar problem as mentioned at pure-ftpd login problem with .08 beta | Page 3 | Centmin Mod Community The Install and Upgrade addon uses ftp_connect only so doesn't support ftp connections over TLS/SSL which requires ftp_ssl_connect.

    Grepping my install I can see Wandigo's Install and Upgrade Addon doe only support ftp_connect and NOT ftp_ssl_connect.

    checking for ftp_connect in Xenforo root install directory
    Code:
    grep -Ro ftp_connect * | grep -v internal_data
    library/DigitalPointSyntaxHighlighter/geshi/php.php:ftp_connect
    library/Waindigo/InstallUpgrade/Model/InstallUpgrade.php:ftp_connect
    
    checking for ftp_ssl_connect in Xenforo root install directory only DigitalPoint's Syntax Highlighter supports ftp_ssl_connect
    Code:
    grep -Ro ftp_ssl_connect * | grep -v internal_data
    library/DigitalPointSyntaxHighlighter/geshi/php.php:ftp_ssl_connect
    checking Wandigo's Xenforo Addon more closely to see the code which is used to connect via ftp_connect (non-TLS/SSL) ONLY

    Code:
    grep -Rn -C10 ftp_connect library/Waindigo/InstallUpgrade/Model/InstallUpgrade.php
    277-                $xenOptions->waindigo_installUpgrade_ftpPath, $fileName);
    278-            return @ftp_mkdir($this->_getFtp(), $fileName);
    279-        }
    280-    }
    281-
    282-    protected function _getFtp()
    283-    {
    284-        $xenOptions = XenForo_Application::get('options');
    285-    
    286-        if ($this->_ftp === null) {
    287:            $this->_ftp = ftp_connect($xenOptions->waindigo_installUpgrade_ftpHost);
    288-        
    289-            $username = $xenOptions->waindigo_installUpgrade_ftpUsername;
    290-            $password = $xenOptions->waindigo_installUpgrade_ftpPassword;
    291-        
    292-            $result = ftp_login($this->_ftp, $username, $password);
    293-        }
    294-    
    295-        return $this->_ftp;
    296-    }
    297-
    You will need to ask Jon about adding ftp_ssl_connect support for FTP over TLS/SSL support. Not sure if it's as simple as changing ftp_connect to ftp_ssl_connect on line 287 of library/Waindigo/InstallUpgrade/Model/InstallUpgrade.php

    from
    Code:
    $this->_ftp = ftp_connect($xenOptions->waindigo_installUpgrade_ftpHost);
    to
    Code:
    $this->_ftp = ftp_ssl_connect($xenOptions->waindigo_installUpgrade_ftpHost);
     
    Last edited: May 3, 2015
    • Like Like x 1