WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Plugin Install Asks for FTP Details (8 posts)

  1. peredur
    Member
    Posted 2 years ago #

    I have a test WP install on my desktop machine (Linux Mint). Everything works fine and I can, and have, installed any number of themes from the Dashboard.

    However, I've just installed WP on my laptop (Ubuntu 11.10) and when I try to install a theme from the Dashboard, WP asks for FTP details.

    Does anyone have any idea why this should be, or some idea as to what I ought to take a look at? I confess to not being the best admin in the world, to say the least.

    Thanks

    PAE

  2. Big Bagel
    Member
    Posted 2 years ago #

    WordPress asks for your FTP credentials when it can't access the files directly. This is usually caused by PHP running as the apache user (mod_php or CGI) rather than the user that owns your WordPress files (suPHP or FastCGI). Switching over to using suPHP or FastCGI would probably fix it. Of course, if you don't want to mess with that, you can always just put your FTP credentials directly in wp-config.php like this:

    define( 'FTP_USER', 'username' );
    define( 'FTP_PASS', 'password' );
    define( 'FTP_HOST', 'ftp.example.org:21' );

    http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants

    Here are a few links that might be useful:

    http://www.chrisabernethy.com/why-wordpress-asks-connection-info/
    http://admindaily.com/how-to-stop-wordpress-ftp-to-upgrade-plugins.html
    http://wordpress.org/support/topic/wp-asks-for-ftp-userpass-when-upgrading-a-plugin
    http://boomshadow.net/tech/php-handlers/

  3. peredur
    Member
    Posted 2 years ago #

    Yes. Spot on. Thank you.

    I fixed it by:

    pae$ cd /var/ww
    pae$ sudo chown -R www-data:www-data wordpress

    Cheers

    PAE

  4. mcondev@gmail.com
    Member
    Posted 1 year ago #

    PAE, you rock!!! thanks..

  5. agionwp
    Member
    Posted 1 year ago #

    go say Thanks to PAE.....
    giving you cheers!!!

  6. agionwp
    Member
    Posted 1 year ago #

    And, of course thank you for Big Bagel

  7. Mohammed Mazhar
    Member
    Posted 1 year ago #

    You can stop wordpress asking for your FTP details by just tweaking you wp-config.php file a little bit. Read the Entire Tutorial at Stop WordPress asking FTP credentials . Hope this helps

  8. LindaEve
    Member
    Posted 1 year ago #

    But what if it's asking for my ftp credentials and I put in correct credentials, yet it tells me they are wrong? That's the problem I am having. I DO have the correct credentials.

Topic Closed

This topic has been closed to new replies.

About this Topic