You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to rename the EVO manager folder in EVO2? #1750
After the update from EVO1 to EVO2 I wanted to rename the manager folder (like in EVO1) to have more security, so I:
edited file /assets/cache/siteManager.php and added this line:
<?php
define('MGR_DIR', 'managerhidden');
then I renamed the folder manager to managerhidden
but now when I navigate to /managerhidden it throws an error that other files in manager cannot be found
PHP Fatal error: require_once(): Failed opening required '/manager/includes/protect.inc.php' (include_path='.:/opt/sp/php7.4/lib/php') in /index.php on line 69
So the question is: How to rename the EVO manager folder in EVO2?
Activity
Dmi3yy commentedon Jan 7, 2021
file: /core/custom/define.php
define('MGR_DIR', 'manager2’);
and
file: config.php in root folder
return [
'manager' => DIR . '/manager2',
];
q2apro commentedon Jan 7, 2021
What path has the "root folder"?
Maybe you mean file
config.inc.phpin\manager\includes\?Dmi3yy commentedon Jan 7, 2021
Near with index.php
q2apro commentedon Jan 8, 2021
I created a file
config.phpin the root (next to the mainindex.php). Content:When opening the website now, it throws an error:
And the website does not work anymore.
Can you please tell the right path of the config.php file? Thanks.
Dmi3yy commentedon Jan 8, 2021
Bad copypast
файле /core/custom/define.php
define('MGR_DIR', 'manager2’);
и
config.php в root
return [ 'manager' => __DIR__ . '/manager2', ];q2apro commentedon Jan 9, 2021
/core/custom/define.php/config.phpWhen opening \manager2 I get the error message:
It is not working.
Dmi3yy commentedon Jan 11, 2021
In core config need use 3 params: like in sample
https://github.com/evolution-cms/evolution/blob/3.x/config.php.example
and all will work
tested