Solved: Can’t install WordPress plugin and theme unable to connect to the file system solution

Published on September 28, 2022 by

If you can not install plugins and themes in XAMPP for Linux Localhost and you see this error

unable to connect to the file system. Please confirm your credentials

You can easily fix this error by adding this code in your WordPress wp-config.php file

define( ‘FS_METHOD’, ‘direct’ );

/* That’s all, stop editing! Happy publishing. */

And after adding this code if you see another following error

Installation failed. Could not create directory

You will have to open your WordPress directory in Linux


Now open terminal and type this command to fix the error

chmod 777 -R wp-content
sudo chmod 777 -R wp-content

this will solve the error.


## 5000+ Words Guide: Jetpack WordPress vs Alternatives? How to save $111/Year?
WordPress Jetpack plugin offers Hassle-free design, marketing, and security features for your WordPress websites at a very affordable price, compared to other premium plugins and themes. With Jetpack WordPress, You get everything you need to build powerful WordPress websites, in one service.


Add your comment