Page 1 of 1

Wordpress plugin tip (automatic install)

Posted: 28 Mar 2014, 11:14
by viking60
I installed the CMS/PHP framework Wordpress on the nginx server I had set up under Manjaro Linux. This went just fine: Wordpress worked out of the box where the competitor - Concrete - did not (otherwise I would have preferred Concrete - but "just works" is nice too).

I was happy with it until I got a message that one of the plugins needed an update. I clicked update and expected a download and automatic install.
But no - I had to provide my ftp connection data and ftp password!
Image


They promised not to store the password etc but I simply do not like to provide data like that - (call me paranoid for no apparent reason :arrogant: ).

There must be a way to simply download the plugin and install it without me having to provide those data? So I dove into the code to hack my way through it:

In the config file in the root of the wordpress directory I found a way.
The file is wp-config.php , and at the very end of that file I added this:

Code: Select all

/**Setting up direct download and installing of plugins without providing ftp data   */
define('FS_METHOD','direct');


When my dashboard gives me notice that there are updates to my plugins now I simply click it and the update gets installed.
This is nice for installing additional new plugins too.
Just click the plugin et voila:
:A
Image