Forums

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

  1. peredur
    Member
    Posted 6 months 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 6 months 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 6 months 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

Reply

You must log in to post.

About this Topic