# FTP credentials requested when downloading a plugin

**URL:** <https://community.kinsta.com/t/ftp-credentials-requested-when-downloading-a-plugin/2041>\
**Category:** Application Support\
**Created:** [January 30, 2023, 9:22am UTC](https://community.kinsta.com/t/ftp-credentials-requested-when-downloading-a-plugin/2041 "2023-01-30T09:22:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcqlntbr](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jcqlntbr](https://community.kinsta.com/u/jcqlntbr)\
**Post date:** [January 30, 2023, 9:22am UTC](https://community.kinsta.com/t/ftp-credentials-requested-when-downloading-a-plugin/2041/1 "2023-01-30T09:22:02Z")

</div>

Hi,

I saw a previous post similar to this but I did not find a solution. I was trying to add the All-in-one WP plugin and a window pops up every time. Here’s the content:

_\> To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host._  
\*\> \*  
_\> Hostname_  
_\> example: [www.wordpress.org](http://www.wordpress.org)_  
_\> FTP Username_  
_\> FTP Password_  
_\> This password will not be stored on the server._  
_\> Connection Type_  
_\> FTP_  
_\> FTPS (SSL)_

---

<div class="post-metadata">

**Author:** ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)\
**Post date:** [January 30, 2023, 9:31am UTC](https://community.kinsta.com/t/ftp-credentials-requested-when-downloading-a-plugin/2041/2 "2023-01-30T09:31:21Z")

</div>

Hello @jcqlntbr and welcome to DevKinsta Community!  
Can you please try to add the following line into your wp-config.php file:

`define( 'FS_METHOD', 'direct' );`

just before the line that says:

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

Regards,  
Alessandro

---

<div class="post-metadata">

**Author:** ![jcqlntbr](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jcqlntbr](https://community.kinsta.com/u/jcqlntbr)\
**Post date:** [January 30, 2023, 9:40am UTC](https://community.kinsta.com/t/ftp-credentials-requested-when-downloading-a-plugin/2041/3 "2023-01-30T09:40:15Z")

</div>

> [@Alessandro](#):
>
> define( ‘FS\_METHOD’, ‘direct’ );

Hi, Alessandro. Thank you for the instructions. It worked!

---

<div class="post-metadata">

**Author:** ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)\
**Post date:** [January 30, 2023, 9:50am UTC](https://community.kinsta.com/t/ftp-credentials-requested-when-downloading-a-plugin/2041/4 "2023-01-30T09:50:29Z")

</div>

You are very welcome Jacqueline, glad it worked!

Regards,  
Alessandro

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)\
**Post date:** [February 2, 2023, 9:50am UTC](https://community.kinsta.com/t/ftp-credentials-requested-when-downloading-a-plugin/2041/5 "2023-02-02T09:50:53Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
