The wp-config.php is one of the most important parts of our WordPress.
This file allows us to carry out the basic configuration of any WordPress, since it is where the main "low level" options are that allow us to have the CMS working.
The wp-config.php file is a PHP file, but it has little code to run. Instead, it has parameters and variables that are what define the proper functioning of the WordPress installation.
To find this file we must access by FTP
If you do not have access to your FTP account, visit our manual FTP account management.
Access the FTP account you have created with the Filezilla program. Inside the "/datos/web/" folder on your FTP, find the "wp-config.php" file and right-click on the file to select the Ver/Editar option.
The file "wp-config.php" will open.
These are the access data that WordPress uses to connect the website with the database. WordPress cannot function without a database.
It corresponds to these lines:
/** The name of the database for WordPress */ define( 'DB_NAME', 'NAME_WP' ); /** MySQL database username */ define( 'DB_USER', 'USER_WP' ); /** MySQL database password */ define( 'DB_PASSWORD', 'Password123' ); /** MySQL hostname */ define( 'DB_HOST', 'localhost' );
In case this configuration does not correspond to the data we have in our Hosting, we could find a connection error with the database.
The FTP account data that has been created in our Hosting are also displayed:
define('FTP_HOST', 'swmanuales.com'); define('FTP_USER', 'USER_WP'); define('FTP_PASS', 'Password123');
If we want to configure the WP Mail SMTP plug-in in our WordPress, we must take into account the email account and password used by WordPress:
define('WPMS_SMTP_USER', 'firstname.lastname@example.org'); define('WPMS_SMTP_PASS', 'Password123');
The wp-config.php file is essential to be able to activate debug mode in our Web:
define('WP_DEBUG', false); define('WP_DEBUG', true);