In a local wordpress installation, when I install a plugin it only offers me installation via FTP

In a local wordpress installation, when I install a plugin it only offers me installation via FTP, even if I load the plugin .zip file from my pc. Why does this happen? I use Ubuntu linux and apache 2 as web server. Thank you.

Topic linux ftp plugins Wordpress

Category Web


Add the following statement to wp-config.php above " * WordPress database table prefix."

define('FS_METHOD', 'direct');

Enter the following code in the wp-config.php file:

add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ ));

define( ‘FS_CHMOD_DIR’, 0755 );

This code deletes WordPress FTP information.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.