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
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/
Yes. Spot on. Thank you.
I fixed it by:
pae$ cd /var/ww
pae$ sudo chown -R www-data:www-data wordpress
Cheers
PAE
mcondev@gmail.com
Member
Posted 11 months ago #
PAE, you rock!!! thanks..
agionwp
Member
Posted 9 months ago #
go say Thanks to PAE.....
giving you cheers!!!
agionwp
Member
Posted 9 months ago #
And, of course thank you for Big Bagel
Mazhar
Member
Posted 9 months 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
LindaEve
Member
Posted 8 months 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.