Fix : Fresh WordPress install can’t upload Themes or Plugin (WordPress asks for FTP details)

After a fresh wordpress install, a common problem encountered is that WordPress prompts you for FTP account details when you try to install a new theme or plugin.


This is simply caused by incorrect ¬†file ownership permissions in the wordpress content directory on the server. To ensure the correct ownership and read/write permission of the files to the following…

Assuming you have shell access, navigate to the wp-content folder and set ownership of the folder and subfolders to the user and group that your webserver runs under using the following commands;


cd /srv/www/

chown -R www-data:www-data *




Leave a Reply