You are here:  » Separate admin panel into subdomain


Separate admin panel into subdomain

Submitted by D.Tzortzis on Wed, 2015-05-13 17:10 in

Hello,

I need for safety reason to separate the administrator panel from main domain www.example.domain/admin into sub domain ex: adminpanel.example.domain.

What file / folder needs to move or create a copy into sub domain htdocs ?

Thanks,
Dimitrios Tzortzis.

Submitted by support on Thu, 2015-05-14 07:49

Hello Dimitrios,

All you need to do to run /admin/ on a separate sub-domain is simply to install the Price Tapestry codebase (no need to run setup.php) using initially the same config.php and config.advanced.php as the installation to be managed.

A couple of considerations are then required with regards to paths. Firstly, from the installation to be managed, before deleting the /admin/ folder go to Tools > Support Info and make a note of the Install Path value, for example

/home/username/public_html/

Then, in config.advanced.php in the adminpanel installation, use as the value for $config_feedDirectory the above combined with feeds/ for example:

  $config_feedDirectory = "/home/username/public_html/feeds/";

Finally, the only admin script that assumes a location of admin/ relative to the installation is the Merchant Logos tool merchant_logos.php. Again using the value of Install Path of the installation to be managed but this time combined with "logos/" perform a Search and Replace in this file using your text editor as follows:

Search:

../logos/

Replace:

/home/username/public_html/logos/

(3 instances in total)

Cheers,
David.
--
PriceTapestry.com