Safely secure database connection string on an ubuntu server

102 Views Asked by At

I have root access to the server, and I want to secure my php connection string to a database.

My files are located in /var/www/html/

Is it possible to put the connection PHP script in /var/www/html/connect.php and save the connection string elsewhere, like in /home/?

I've played with .htaccess as well, but not getting to far in my research.

0

There are 0 best solutions below