Guides and tutorials

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

Add FTP data in WordPress

Plugins or WordPress core itself updates require the access data to the FTP server. Normally, they will be requested on each occasion, but we can include them in the WordPress configuration files so that they are not requested again.

We tell you how to include FTP data in the configuration file:

  • Access the directory where you have hosted WordPress (usually: "/data/web/").

  • Modify the file "wp-config.php".

You can choose to access via FTP to modify the file. If you have questions about how to access, see our manual "FTP account management".

  • Add the following lines:
define ('FTP_USER', 'User_Name');
define ('FTP_PASS', 'Password');
define ('FTP_HOST', 'IP_FTP_Server');
  • Modify the following parameters:

    • User-name: FTP access user.
    • Password: FTP access password.
    • IP-Server-FTP: Address or IP of the FTP server.

As an example:

define ('FTP_USER', 'swdemo');
define ('FTP_PASS', 'SwC0ntras3ña!');
define ('FTP_HOST', '81 .25.0.1 ');

Remember that, in case you need to download or update any component, WordPress will need write permissions in the "wp-content" directory.

To do this, from SW Panel access to Services > Select the service where WordPress is installed > Permissions Management and click on the "wp-content" directory icon:

If the icon is green, it means you have write permissions.

We have already configured the FTP data in WordPress!