-
- 24,544 Posts
There's probably a way to make that work, but I always move the core above the web root. You just need to modify the core/config/config.inc.php file and the three config.core.php files (MODX Root, manager, and connectors folders).
Hi, BobRay
Then I would have to move the core/ folder out of my past root/ ?
-
- 24,544 Posts
Yes, though I usually rename it first and don't remove it until I'm sure everything is working as it should. I usually put it above public_html and name it something uninteresting.
BTW, UpgradeMODX will still work if you do this, but when you back up the site, you have to remember to also back up the core folder separately.
As I use Upgrade Modx, it may be a problem in the future, I find it strange that this inconsistency appears with the permissions being all correct and the .htaccess working perfectly.
-
- 24,544 Posts
Maybe you misunderstood me -- UpgradeMODX will work fine with a moved and renamed core (and a renamed manager folder). I use it all the time.
Got it!
I modify
core/config/config.inc.php
and
public_html/core/
public_html/core/model/modx/processors/
but no work!
Occour error:
manager/index.php
lines: 37,38
-
- 24,544 Posts
That doesn't sound quite correct, so let me try again.
First, you move the core.
Then, the *only* file in or under the core directory that needs to change is core/config/config.inc.php. Change all paths or URLs in config.core.php that need updating. If they are defined in terms of MODX_CORE_PATH, or are *not* under the core, they don't need changing, but if they are hard-coded paths, in or under the core directory, they need to be updated. Usually, it's just the MODX_CORE_PATH and sometimes the MODX_PROCESSORS_PATH that need updating.
Then, you need to modify the three *config.core.php* files.
One in the MODX Root directory
One in the manager folder
One in the connectors folder
They need to point to the new location of the core.
Hi,
I will try to modify and give you a return, thanks for the feedback!