Open ngmikeng opened 1 year ago
Just a quick change to wp-config.php, add this:
define('FS_METHOD','direct');
I'm having the same issue. WordPress asks for an FTP server when trying to install a Plugin or Theme.
I tried adding define('FS_METHOD','direct');
and it stopped asking for FTP information but it shows me an error message that says: Installation failed: Could not create directory. /var/www/html/wp-content/upgrade
Any help hit will be appreciated.
It's a folder permission problem.
You need to change permissions for upgrade or better for the full wp-content folder.
You can try:
sudo chmod -R 755 wp-content
Wordpress ask information of FTP server when I try to install a Plugin or Theme.
Although we can use WP-CLI but it's good to have if we can install plugin or theme by using Admin Panel.