Skip to content

Navigation Menu

Sign up

How to rename the EVO manager folder in EVO2? #1910

Unanswered
q2apro asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Replies: 7 comments

Comment options

file: /core/custom/define.php

define('MGR_DIR', 'manager2’);

and

file: config.php in root folder

return [
'manager' => DIR . '/manager2',
];

You must be logged in to vote
0 replies
Comment options

What path has the "root folder"?

Maybe you mean file config.inc.php in \manager\includes\?

You must be logged in to vote
0 replies
Comment options

Near with index.php

You must be logged in to vote
0 replies
Comment options

I created a file config.php in the root (next to the main index.php). Content:

<?php
return [
	'manager' => DIR.'/manager2',
];

When opening the website now, it throws an error:

Warning: Use of undefined constant DIR - assumed 'DIR' (this will throw an Error in a future version of PHP) in /config.php on line 4

And the website does not work anymore.

Can you please tell the right path of the config.php file? Thanks.

You must be logged in to vote
0 replies
Comment options

Bad copypast

файле /core/custom/define.php

define('MGR_DIR', 'manager2’);
и
config.php в root
return [ 'manager' => __DIR__ . '/manager2', ];

You must be logged in to vote
0 replies
Comment options

  1. Created a file /core/custom/define.php
  2. Created a file /config.php
  3. Uploaded both files to the server
  4. Renamed manager to manager2

When opening \manager2 I get the error message:

Unable to load configuration settings
Please run the Evolution CMS install utility

It is not working.

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1750 on March 10, 2021 15:14.

AltStyle によって変換されたページ (->オリジナル) /