WordPress Plugin Install Asks for FTP Details

WordPress is asking me for my SFTP credentials in order to install any plugins.

I am using Linux ubuntu 12.**.

Read More

But Same thing I tried on Window “Wamp” server. I can install plugins.

Can Any one know why this happen?

Related posts

Leave a Reply

3 comments

  1. I have tried this, I am able to work with this solution

    Please use in wp-config.php

    define('FS_METHOD', 'direct');
    

    This statement solve my issue.

  2. I still had problems when the files were hosted on a different location than on my web server. So, just for reference, if you choose to use http://ftp.. you can add these lines to your wp-config.php:

    define( 'FTP_USER', 'username' );
    define( 'FTP_PASS', 'password' );
    define( 'FTP_HOST', 'ftp.example.org:21' );
    
  3. Check your file permissions are set.

    Check your wordpress login has admin rights.

    You may be behind a proxy, so when wordpress does a curl request to get the code it fails. I am guessing your linux firewall may be blocking it where as your windows isn’t.