Disclaimer: TubeMint is fully funded by its readers, we recommend hightly rated affiliate products and services and when you buy them through our links, we get commission at no extra cost to you. Thanks for you support!

Fixed: WordPress is Asking for FTP Credentials

I installed a WordPress site on Upcloud 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/site.com/app/wp-config.php

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/site1.com/

and one more time

chown -R www-data:www-data /opt/easyengine/sites/site1.com/app/htdocs/

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');

Leave a Comment