We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
New design
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow Moving the core directory outside the MODX root directory

For more security in MODX, you can move the core directory outside site root directory... To do this, you need to do the following:

  1. Through file manager or any FTP client transfer directory core of site root directory one level up - to the directory with the name of the main domain (so that it is accessible along the path example.com/core/where example.com - the name of the main domain).
  2. Edit three files: config.core.php, manager/config.core.php and connectors/config.core.php... Find the line in each of them:
    define('MODX_CORE_PATH', '/home/user/example.com/www/core/');

    And replace it with this:

    define('MODX_CORE_PATH', '/home/user/example.com/core/');

    Instead user specify the name hosting accountand instead of example.com - the name of the main domain without subdomains.

  3. In the transferred directory core edit the file config/config.inc.php and replace all references in it /www/core/ on /core/.
  4. Check the site is working. In case of errors in the called functions and classes, double-check all the specified paths to the directory core in the above files.