Salts and Keys in wp-salt.php
-
Hi, I recently created a new WordPress site on a VPS webhost (Cloudways). When I went to manually update the salts and keys, I found in the wp-config.php there were no placeholders present and instead was a line
require('wp-salt.php');
I looked in this file and it contains the salts and keys (nothing else).
I can’t find anything online about this method of implementing salts and keys. I asked the webhost if this was something they did with their wordpress image for all installs and they insist that the wp-salt.php file is generated by WordPress when it is installed.
I downloaded WordPress from www.ads-software.com and when I look at the files I don’t see any wp-salt.php file anywhere, and the wp-config-sample.php clearly has placeholders for the salts and keys right in it.
I’m hoping someone here can clear this up for me:
1. Is this method (putting the salts and keys in a unique file wp-salt.php and calling that file in the wp-config.php) the current standard/default for WordPress? Or is this something unique to Cloudways?
2. What is the purpose of defining the salts and keys at all, since I’ve read that if you don’t, the database does this anyway?
3. What is the accepted best practice? Let database do it? Define manually directly in wp-config.php? Define in a separate file which is called within the wp-config.php?
I just want to know the best practice is.
Thanks in advance to anyone who can assist.
- The topic ‘Salts and Keys in wp-salt.php’ is closed to new replies.