Wordpress FTP and SFTP issues while uploading plugin or theme

TDhendup
0

 

How to stop wordpress from asking FTP and SFTP credentials while uploading plugin or theme

Once you solve the upload issue (as seen in my earlier post), you will be confronted with the following issue

 

Why does this happen?

This dialogue is triggered when the filesystem classes of wordpress are used. When trying to installa plugin or the theme, the content of the plugin needs to be extracted to wp-content/plugins or wp-content/themes (in case of the theme upload). Thus, we need to ‘tell’ the process owners i.e., apache or PHP to use the native filesystem to create/write the content to the root wp-content directory.

 

To do this, now open your file wp-config.php  and write the following line

 

Define(‘FS_METHOD’, ‘direct’);

 

Save the file, and you will no more see the above issue.

Tags:

Post a Comment

0Comments

Will review your comment and get back!

Post a Comment (0)