Referencing this question: How to secure database passwords in PHP?
In Dedicated or VPS server, How to secure mysql configuration file that contains DB username & password. Which can be used in php applications.
Having multiple root users on that server.
How to best secure config.php from local users and hackers?