Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

wp-config.php of my WordPress

The wp-config.php is one of the most important parts of our WordPress.

This file allows us to perform the basic configuration of any WordPress, as 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 that executes. Instead, it has parameters and variables that are what define the correct functioning of the WordPress installation.

You can edit this file through the File Manager provided by the SW Panel (you can also access it via FTP or SSH). To locate it, you must go to the root directory of your website (/data/web), here is the procedure:

1- Enter the dashboard of the hosting service where you host your WordPress looking for it in the SW Panel:

enter image description here

2- Access the file manager by clicking on Service management -> File manager:

enter image description here

3-Locate the file wp-config.php inside the hosting service folders (/data/web/wp-config.php):

enter image description here

4- Place the mouse over the three dots on the right side of the wp-config.php file and click Edit file:

enter image description here

MySQL Data

This is the access data that WordPress uses to connect the website to 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 with the data we have in our Hosting, we could encounter a database connection error.

Mail data

If we want to configure the WP Mail SMTP plug-in in our WordPress, we must take into account which is the email account and password used by WordPress:

define('FTP_HOST', 'swmanuales.com');
define('FTP_USER', 'USER_WP');
define('FTP_PASS', 'Password123');

Mail data

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', 'info@swmanuales.com');
define('WPMS_SMTP_PASS', 'Password123');

Debug mode

The wp-config.php file is essential to be able to enable debug mode on our website:

define('WP_DEBUG',  false);
define('WP_DEBUG',  true);
More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.
More than 2000 m² of own facilities and Data Centers in Spain
Your privacy is important for us
We use our own cookies for the proper functioning of the site. In addition, third-party cookies are used for analytical purposes only. This information is not associated with any person so that personal identifying data is not stored, but is only information that is collected to identify the session, with the aim of facilitating the analysis of the website. You can change your preferences at any time by entering this website again. For more information about our cookie policy you can visit our Cookies. You can press the "Accept and close" button to give us your consent or you can access more detailed information and manage cookies.