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
Type the following constant in wp-config.php
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