Wordpress asking for FTP info to install theme, but I have ssl passphrase.

  • Posted August 3, 2013

I installed Wordpress on my droplet, and I want to install another theme and some plugins, but Wordpress is asking for FTP credentials. But I am using vsftpd and ssl to login with passphrase.

So what should I specify for the hostname? Should this be the ip address, or should it be

If I am using vsftpd and ssl with passphrase, what should I provide for the username and password?

Wordpress seems very difficult to setup on a droplet, but maybe its just me.

Thanks in advance.


This comment has been deleted

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Add this to wp-config.php: <br> <br>define(‘FS_METHOD’,‘direct’); <br> <br>Try installing the theme again, does that fix it?

Ok, After reading some article,I think I find the right way to solve this problem. First Add this to wp-config.php: define(‘FS_METHOD’,‘direct’); Two Don’t use any order, you should change the permission of /yourwww/wp-content and /yourwww/wp-content/plugins to 777. Of course ,the /yourwww/wp-content and the /yourwww/wp-content/plugins should have the 777 permission. The problem is about permission. After you do this,you will never face this problem again.

Run these commands: <br> <br>chgrp -R www-data /srv/www/wp-content <br>chmod -R g+w /srv/www/wp-content

That got me past the ftp login screen, but then I got a message “Could not create directory”: <br> <br>Installing Theme: Responsive <br> <br>Downloading install package from… <br> <br>Unpacking the package… <br> <br>Could not create directory. /srv/www/wp-content/

sudo adduser <username> www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www

this realy work…

Use this code , wordpress asking for ftp details because wordpress doesn’t have permission to write in your server. use these two commands in terminal.

$sudo a2enmod rewrite $sudo chown -R www-data /var/www

video guide

This is user’s permission problem that will be solved by method given below that worked for me.

step-1 : First open wp-config.php file of your wordpress installation folder. step-2: Copy below code and paste it at the end of the wp-config.php file.


step-3: Now open your droplet access console and enter root as username and its password. step-4: Copy below code and paste it into access console where you have to specify your plugin directory path and then hit enter.

chmod 777 /yourwebsitename/public/wp-content/plugins/

Note: Replace your website name in the place of yourwebsitename. Thank you.

sudo adduser <username> www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www

its worked for me

Thanks Kamal, that’s exactly what I needed, and is a bit safer than setting the whole Wordpress install dir to 777.