Installatron over FTP

For urgent and private issues, open a support ticket instead of posting: https://secure.installatron.com/tickets
fvinstallatron
Posts: 1
Joined: Wed Mar 31, 2010 7:23 am

Installatron over FTP

Postby fvinstallatron » Thu Apr 08, 2010 5:54 am

Hi,

We are implementing a custom-version of Installatron on a central server and wish to use FTP.

By setting

Code: Select all

$details["path_remote"] = "ftp://admin:password@mydomain.co.uk/installatron/";


We can pass the `domain check`; and the deleteme.XXX.php file is uploaded and executed - so far so good.

However, if we return a FTP path from getInstallPath(), the Installatron install just times out (doesn't even attempt an FTP connection to the server). If we return the proper path; Installatron installs the application successfully; but on the LOCAL machine; not the actual web server!

I have raised a support ticket (but haven't recieved any answer so far).

Phil
Staff
Posts: 486
Joined: Tue Jun 19, 2007 6:06 am

Re: Installatron over FTP

Postby Phil » Thu Apr 08, 2010 7:33 am

Hello,

For FTP-utilizing implementations the getInstallPath method should return the local path to the installation from the context of the remote host. Installatron session variables can be used by the getInstallPath method, so you might use something like this:

Code: Select all

   public function getInstallPath($httphttps, $domain, $directory, $subdomain)
   {
      return itron::$session["path_home"]."domains/$domain/"
         .( $httphttps === "http" ? "public_html" : "private_html" )
         .( $subdomain !== null && $subdomain !== "www" ? "/".$subdomain : "" )
         .ltrim($directory,"/\\");
   }


The fact this caused Installatron to install to the local machine suggests a misconfiguration in the return values of the getUser method. In addition to the path_remote return value, a path_home return value is also required. Similar to the getInstallPath method, the path_home return value should be the local path to the same directory as path_remote but from the context of the remote host.

Thanks,
Phil.
Phillip Stier
Installatron Co-Founder


Return to “Administrative Technical Discussion and Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests