I want to create a secure connection between PHP and MYSQL database.
In order to do this, I need to store the DB infos in a separated file, with -r--------
permission (readonly for owner). But doing like this, PHP seems impossible to open the file, making impossible the connection.
What do i have to do? Do i have to run PHPMYADMIN as root?
EDIT:
This is the result of the "ls -l" command. Thank you for help.
ls -l
would be useful. – mrc02_kr Jul 20 '20 at 13:23