Tagged: wordpress-plugin

Require FTP login when installing WordPress plugins

Problem: when trying to install a plugin via whether manually upload or WordPress plugin page. There is a pop-up box that requires you to fill FTP username and password.

If people do not know their FTP login username and password, they never able to install wp plugin 🙁

Solution: In wp-config.php , add below line at the end of the file

define('FS_METHOD', 'direct' );

to force WordPress to write files directly. And you may also need to change the permission in wp-content and wp-includes

For the risk of adding FS_METHOD DIRECT please check out this post.

WordPress plugin install/update: Could not create directory

Problem: Try to install or update a plugin in WordPress by upload file or install package in WordPress. The user got this error: Could not create directory. (path) or An error occurred while updating (package): Could not create directory

Solution: Enter command in your porject: chown -R www-data:www-data wp-content

Close Bitnami banner