Days
:
Hours
:
Minutes
:
Seconds

Black Friday Sale - Limited Time Offer!

View Now
Skip to content Skip to sidebar Skip to footer

WordPress Asking for FTP Credentials

FTP credentials

Have you faced the problem when WordPress is asking for FTP credentials? As a rule, it happens after activating the theme or installing a plugin. In the first place, this problem is related to file ownership/permissions on your server and this article will show you how to solve it. 

Why does WordPress ask for your FTP details? This is the default behavior when WordPress can not access to write the files directly on the root of your web server.  In order to fix the issue, you will need to modify wp-config.php file located in the root folder.  Please edit the file and add these lines: 

define('FS_METHOD', 'direct');
define('FS_CHMOD_DIR', 0755);
define('FS_CHMOD_FILE', 0644);

The code should be added right after this line:

define('NONCE_SALT', 'XXXXXXXXXXXXXXXXXXXX');

The screenshot shows the exact location of the code in the file:

asking for FTP details

Once you added the lines, save the changes to the file. You should be no longer prompted for FTP connection information. 

This is the easiest and quickest way to solve the problem. Alternatively, you may contact your hosting provider and ask for their help. They will check your server configuration and provide you with further assistance.

We hope this guide will help you to easily solve the problem with WordPress asking for FTP credentials. 

For the Updates

Exploring ideas at the intersection of design, code, and technology. Subscribe to our newsletter and always be aware of all the latest updates.

Leave a comment

Download a Free Theme