Direct Connection through HTTP Tunnel

fmPreferences - fmDirectConnection

This section describes how to setup HTTP Tunnel connection in Store Manager for Magento.

HTTP tunnel is an alternative way of connecting to your database which possesses the advantages of both direct and bridge connection.

This type of connection is useful if you don’t have direct access to MySQL database. Also, you don’t need to do POST \ GET operations to synchronize data with your store, all changes will be reflected in real-time.

To configure HTTP Tunnel connection, follow a few steps listed below:

  1. Open your application main directory - usually it is C:\Program Files\eMagicOne\Store Manager for Magento and find directory "Service" there. Inside this directory you can find sm_tunnel.php file.
  2. Copy sm_tunnel.php file to your online store root (catalog) directory via FTP. Tunnel should be accessible from web as here - whereas is your store URL. If you uploaded file correctly, you will receive the message - “Tunnel script is installed correctly. You can establish connections through the HTTP tunnel.”
  3. Open your store root folder -> app folder -> etc folder and find there local.xml file.

Find the following lines:

<username><![CDATA[name]]></username>             //here your User Name (login) is defined
<password><![CDATA[pass]]></password>            //here your password is defined
<dbname><![CDATA[remote_database]]></dbname>    //here your database name is defined

4. In your Store Manager, open Preferences -> Actions -> Create new configuration and then put the name of the configuration or press the appropriate button next to the 'Store name' field.

5. Select checkbox "Direct connection through HTTP Tunnel"

6. Specify Remote Database Connection Settings:

  1. "Tunnel address". Specify tunnel address, it should look like where - is your store URL.
  2. "Port". 3306 is used in most cases (please ask your hosting provider to check if the one is used).
  3. "Host", "User name (login)", "Password" and "Database (name)". Specify your hostname, database username, password and database name, which you have found at your local.xml file.
  4. You may type database name manually or use browse button [...] to see the list of available databases and select the one you need from the drop-down.

7. Use the [Test Connection] button to verify if all settings are correct and connection to your remote database is possible.

8. Click [OK] to save this entry, close Preferences and to connect to your database, or click [Cancel] to discard this entry.

Since the latest release of Store Manager you can specify the version of SSL by using the drop-down list and select/unselect SNI field in the Advanced Settings area, as shown below:

Advanced Connection Settings area