• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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