Wordpress FTP Login

WordPress requires FTP login for plugin (de-)installation

WordPress requires FTP login for plugin (de-)installation – at least for me right now and to be exact on my 2 local WordPress playgrounds.

WordPress requires FTP login during plugin installation – Prompt

Something like that is kind of annoying and can be a big problem, especially on live environments of customer websites, since the search for rarely used passwords can sometimes take some time.

So what to do? Simply follow these collected tips from the Internet:

  1. Customize wp-config.php
  2. Adjust file ownership

Customize wp-config.php

Move inconspicuously into the config.php file and copy the following line at the bottom:


/* Anpassung G2G - Problem mit FTP Login zur Plugin Installation beheben */
define('FS_METHOD', 'direct');

By the way, I got this tip from Holger Konemann, who wants to read his complete contribution can click here.

On my first try, however, I couldn’t do much with it. But I got an error message that I’ve never seen before. It read:

The plugin could not be deleted due to an error: The plugin could not be completely removed: akismet/akismet.php.

Wordpress requires FTP login during plugin installation - error message

WordPress requires FTP login during plugin installation – error message

Then I tried another tip…

Adjust file owner

As recommended in the article from ansas-meyer.de, I entered the following lines in the terminal:


cd /path/to/wordpress-installation
find . -exec chown www-data:www-data {} ;

If you don’t know the exact path to your (local) WordPress installation (on the Mac), right-clicking on the folder will help – you can get more information here.

Wordpress requires FTP login when installing plugin - folder path

WordPress requires FTP login when installing plugin – folder path

So I managed it really well with the 2 lines in the terminal… aaabut the result looked sobering at first, namely like this:

WordPress requires FTP login when installing plugin - terminal error

WordPress requires FTP login when installing plugin – terminal error

So off to the next suggestion…

After I had mentally processed the nice error messages from the 2nd tip, I entered the following lines below:


find . -type d -exec chmod 755 {} ;
find . -type f -exec chmod 644 {} ;

In order to adapt the CHMOD rights of the files. In this case, no error was displayed to me, but no audio file with applause noises was played either. Tested briefly, but the usual error message still came up:

The plugin could not be deleted due to an error: The plugin could not be completely removed: akismet/akismet.php.

So what to do? Quite simply: off to the next tip!

Adjust file owner

I came up with this brilliant tip all by myself, so there is no link to the source. Just go to your folder, right-click and adjust the access rights manually – and preferably do it all recursively, i.e. to all subfolders. In the screenshot, the adjustment is still missing for the user everyone – here, too, the rights should be set recursively to write & read.

WordPress requires FTP login when installing plugin - folder file permissions

WordPress requires FTP login for plugin installation – folder file permissions

And what does the plugin manager say now? I tell you:

The selected plugin was turned off.

That’s how easy it is 😉

Achso: You still have to leave the line in config.php as it is. The solution for me was a combination of the first tip and the third.

I hope that this little tip will help you and I wish you the best of luck. Anyone who has been successful and wants to take revenge, or simply thinks we’re cool, is invited to visit our social media profiles and connect with us there. Many Thanks.

Update from July 4th, 2017 – If you have hosted your site on a server / web package at Hosteurope, I have an insider tip for you: You may have to adjust the user in the HIS area for the files / folders. In the area: Your package > Configure > Webspace & users > File management you should take a look at the User column. If your entries start with ftp instead of wp that could be the problem. Mark all lines and select the user below that begins with wp and also check the box for recursive. This just helped me with the sky-mp3.com blog after the usual stuff didn’t work.

Previous post How to design WordPress login page
closet 426388 Next post WordPress: Protect login area from brute force attacks (Apache server)