I am using WordPress on my live server which only uses SFTP using an SSH key.
I want to install and upgrade plugins, but it appears that you are required to enter your FTP login to install the plugins. Is there a way to install and upgrade plugins by manually uploading the files instead of having WordPress handle the entire process?
Yes, directly install the plugin in WordPress.
other Option
I saw a lot of people recommending to set permission to 777. I had same problem like 2 days ago and all I did was, add this to wp-content
and
This solved my problem of asking FTP access login/password.
Before that, I had to add plugin manually by adding .zip file to plugin folder and then go to
wp-admin/plugins
and had to installed it.wp-config.php
adddefine('FS_METHOD', 'direct');
wp-content/
,wp-content/plugins/
.wp-content/plugins
dir).Worked on version 3.2.1
You can get it very easily by typing the following command on command promt
or copy & paste the following code in your wp-config.php file.
Where "your_folder_name" is the folder where your WordPress is installed inside this folder.
open
wp-config.php
file and add the following line:define('FS_METHOD', 'direct');
this is working for me ...Thanks
I also recommend the SSH SFTP Updater Support plugin. Just solved all my problems too...especially in regards to getting plugins to delete through the admin. Just install it in the usual way, and the next time you're prompted by WordPress for FTP details, there'll be extra fields for you to copy/paste your private SSH key or upload your PEM file.
Only problem I have is in getting it to remember the key (tried both methods). Don't like the idea of having to find and enter it every time I need to delete a plugin. But at least it's a solid fix for now.