Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have installed Wordpres on Linux mashine ( LAMP )

In administration menu, when I delete a plugin it asks for FTP details ( as in attached image ).

Why and how can I solve this problem ?

share|improve this question

migrated from stackoverflow.com Jul 24 '12 at 2:46

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers 2

up vote 0 down vote accepted

Add this to you wp-config.php and you wont need to add FTP login at all:

define('FS_METHOD','direct');

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

share|improve this answer
    
Thanks that is done, –  maulik1987 Jul 19 '12 at 11:09
    
If that's the answer you where looking for accept the answer –  janw Jul 19 '12 at 13:36
    
ya, i add this function in wp-config.php and my wordpress website work as add and delete plugin, also i not want need to add ftp login details –  maulik1987 Jul 19 '12 at 14:18
    
Then accept my answer, the green button on the left side to my answer –  janw Jul 19 '12 at 14:34
add comment

Can put these in wp-config.php

  define('FTP_USER', 'username');
  define('FTP_PASS', 'password');
  define('FTP_HOST', 'ftp.example.org:21');
 //*If you can use a SSL connection set this to true*
 define('FTP_SSL', true);
share|improve this answer
    
when i install new wordpress project also add and remove plugin that time show details in localhost in linux also i add,remove plugin manually folder...... –  maulik1987 Jul 19 '12 at 7:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.