• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Input phpMyAdmin Plesk Config Overrides User/Server Config

RAnthony

New Pleskian
Toward the top of config.plesk.php is
if (defined('CONFIG_FILE_USER') && is_readable(CONFIG_FILE_USER)) {
include CONFIG_FILE_USER;
}

However, I believe it should be toward the bottom as it will override any changes we put in place.
For example:
If I have more than 1 Server setup and want a different control host/port/user/pass for each server it cannot happen the way it is set up now.

Thoughts on this?
 
But would it not be the case in PHP that variable assignments that are done later in a script overwrite assignments that have been done earlier?
 
That is exactly the issue.
The file "config.plesk.php" includes "config.inc.php" toward the top which means everything in it overrides anything in "config.inc.php"
I am of the mind that "config.inc.php" should be included at the bottom of "config.plesk.php"
 
Now I got what you mean. Thank you for bringing this up.

It is actually o.k. this way. When you look into the file and the code sample for the config.inc.php file you will notice the array type variables for the server(s). They end on [$i]. $i is 1 for the Plesk configuration. You can add other configurations by adding entries to a different index. It has to be greater 1. For example, you could rename config.sample.inc.php to config.inc.php and add a second section with $i = 2 at the bottom.

As the $i = 1 is reserved for Plesk anyway, your add-on configuration will not be overwritten if the file is included at the top of config.plesk.php.
 
Back
Top