Trying to find out how to move the /core/ outside of the web server’s document root. I found this explanation on https://docs.modx.com/current/en/getting-started/maintenance/securing-modx :
Once you move it, you’ll have to update the following configuration details:
- core/config/config.inc.php (change the $modx_core_path variable)
- /config.core.php (at the site root)
- The modx_workspaces database table (this is only necessary in older versions of MODX) – this is best done by re-running the setup as you might do when moving your site
Important: If you move and/or rename the core, you’ll also have to modify the processors path ($modx_processors_path) in the config.inc.php file unless it is defined relative to the core directory, since the processors directory is under the core directory.
You’ll probably want to go ahead and update the other paths, but just keep in mind that once you’re done, you’ll should run the setup to ensure that all your paths are clean.
What is meant with “modify the processors path ($modx_processors_path) in the config.inc.php file”? This is not quite clear to me. Why is it not mentioned in the bulleted list above? Is it in the file ‘core/config/config.inc.php’?
And what is best practice to run the setup afterwards? I cannot find any explanation on that.