Find by Category

Fixed: WordPress is Asking for FTP Credentials

I installed a WordPress site on with EasyEngine and had WordPress asking for FTP username and password and also images were not being displayed after migrating this WordPress site from other web server.

To fix all I had to just give write permission to the WordPress Root Folder and a WP constant to wp-config.php file. I used putty on my Windows 10 to perform the following tasks.

Now it’s your turn…

Login as root user and run the following commands

nano /opt/easyengine/sites/

Type the following constant in wp-config.php

define('FS_METHOD', 'direct');

To save wp-config.php file with nano just press CTRL+O and CTRL+X

Give Write Permission to WP root Folder

chown -R www-data:www-data /opt/easyengine/sites/

and one more time

chown -R www-data:www-data /opt/easyengine/sites/

On the Localhost Using Apache

If you are using Ubuntu with Apache on the cloud or locally then follow these simple steps and you are done.

sudo chown -R www-data:www-data /var/www/html/wp_folder
sudo nano /var/www/html/wp_folder/wp-config.php
define('FS_METHOD', 'direct');