Deployment of site storage

Site storage is used for landing, prelanding and TDS. All sites are located in a single storage attached to the technical domain r.domain.com of your network.

The sites require PHP version 5.6 or higher to run. No database is required. The installation process is as follows:

  1. Unzip all files from the shop folder to the root of the domain.
  2. In the config.php file, specify the required settings.
  3. Add the cron.php file to the cron scheduler every 10 minutes.
  4. Place the sites in sub-folders.

Your config.php file may contain the following settings:

  • BASEURL — the address of the system control panel, with http:// at the beginning and / at the end
  • DONEURL — The URL to which the user will be redirected if the order is successful. You can use %id to specify the ID of the created order. Can be specified separately on each landing page.
  • THANKSPAGE — the name of the file that will be loaded instead of the standard Thank you page on the landing pages. Can be specified separately on each landing page
  • CC — the name of the file that was once cc.php, on the main server
  • METRIKA — ID of the main Yandex.Metrica counter, which is placed on all landing pages
  • VK — ID of the VK pixel, which is placed on all landing pages
  • FB — Facebook pixel ID, which is put on all landing pages
  • GA — Google Tag Manager code ID, which is put on all landing pages
  • APIKEY — global site API key
  • CONTROL — control panel key
  • BASEDIR — full path to the site
  • The ext() function — logic handler for the agency.
  • SHOPURL (deprecated) — the address of the shop site to which the user is redirected after the order is submitted, with http:// at the beginning and / at the end. If you want the user to stay on the same site after submitting the order, leave this parameter empty.
  • PDR (deprecated) — the default parked redirect domain, used for iframe pixels to work if the affiliate has not chosen their own parking domain. If not specified, the site’s current domain is used.

This file must also contain ClickServer settings. We recommend using ClickServer instead of just sending clicks to a cc.php file. It will significantly increase performance and will allow you to work with large volumes of traffic using the same server capacity.

It is recommended to rename the landing management file control.php to a random 32-character name for better security.

In the “Sites” section of the system settings, specify the following data in all settings blocks (redirect, landing pages, prelandings):

  1. The domain used for the site with landing pages, for example r.domain.com.
  2. Dedicated IP address of the landing page for domain parking support.
  3. The full URL to the control.php file like http://r.domain.com/control.php
  4. Site control key from CONTROL constant

Domain parking

If you plan to use domain parking for landing pages, you need to set the domain as the default site on the primary IP address. If you used our configuration script, no additional settings are required. If you are using Apache, make sure the site uses the very first VirtualHost block. If you use nginx, make sure that the default_server keyword is present in the site’s listen configuration.