When it comes to WordPress, installing plugins is critical to changing the use of WordPress for your website. Nevertheless, in some cases the WordPress will ask you the FTP credentials when you attempt to install or update a plugin. This can be very inconvenient, especially forcefully when one does not have the details of the required FTP. The good news is that you could possibly never even get to the FTP credential request at all. This tutorial is going to help you to understand how to install WordPress plugins without the use of FTP login details if you are a newbie.
But, let us discuss what actually requires the WordPress to demand FTP login details at the time of plugin installation or update. WordPress requires the ability to write files to your server at that location. In case, your hosting environment is not configured for direct file access then WordPress will request for FTP login details to carry out the implementation.
This typically happens due to:
Let’s turn to the solution part now.
WordPress offers one of the simplest ways to install plugins without FTP credentials – adding a code line into the wp-config.php file.
How to Install WordPress Plugins Without FTP Credentials using modify wp-config.php
This can be done using file manager which is can be availed from your web host or through an FTP program like FileZilla.
This file is always placed in the root of your WordPress installation directory most commonly this is in the public_html directory
Open wp-config.php in a text editor and add the following line of code:define('FS_METHOD', 'direct');
This line instruct WordPress to use the direct file system access to installing and updating the plugins without involving FTP credentials.
After adding the code save the file and then try to install or update the plugin one more time. You should no longer see the request in the form of FTP credential.
A second typical cause of the FTP prompt is uneven file permissions. WordPress should be allowed to write files and this can solve the problem of wp sounding its head.
Use the file manager provided by your hosting control panel or an FTP client.
For folders, set the permission to 755.
For files, set the permission to 644.
When applying folder permissions, ensure they are applied recursively so that all subfolders inherit the same settings.
After adjusting the permissions, try installing or updating the plugin to see if the issue is resolved.
Now you know how to install WordPress plugins without FTP credentials if you don’t want to use FTP data in wp-config.php file or if you want to change the permissions on the files. This simple tweak can prove very handy indeed if you are constantly installing or updating plugins. By the following steps, those who are not familiar with web development will be able to manage plugin installations using WordPress without using FTP details. Happy Coding 🙂
If you liked this guide, don’t forget to visit more tutorials on Code Junction for all your web development and WordPress requirements!
Are you frustrated because your WordPress not sending emails issue is affecting essential notifications like…
For anyone using WordPress for the first time, they may be surprised to find just…
In the modern world of innovations,(predicated on artificial intelligence (AI), Microsoft launched a number set…
This website uses cookies.