Categories
Wordpress

How to solve failing installation of wordpress plugins

I wanted to install a wordpress plugin via the wordpress panel and I failed due to missing FTP rights. An alert window appeared asking me for FTP or SFTP credentials. I pasted them in there but, this did not work.

What worked for me is setting an additional snippet to my wp-config.php.

Just add:

define('FS_METHOD','direct');

at the end of your wp-config.php. This enables some direct mode where wordpress does not need an FTP connection to install plugins.

If you still get a message saying something like “directory could not be created” you need to set the owner of the plugin folder to www-data (on Apache) and the access rights to 775.


Sources:

Leave a Reply

Your email address will not be published. Required fields are marked *

Privacy Overview
mic.st

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.