Wordpress插件安装-无法连接到FTP服务器-最安全的解决方案? [英] Wordpress Plugin Installation - Failed to connect to FTP Server - Safest Solution?

查看:170
本文介绍了Wordpress插件安装-无法连接到FTP服务器-最安全的解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我成功用Wordpress建立了VPS LEMP堆栈.当我尝试从WP后端安装插件时,系统将提示以下消息:

I succesfully set up a VPS LEMP-stack with Wordpress. When I am trying to install plugins from the WP backend, I am prompted with the following message:

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.

输入用于通过FileZilla访问服务器的SFTP帐户详细信息时,出现以下错误消息:

When I enter my SFTP-account details, which I am using to access the server with FileZilla, I get the following error message:

Failed to connect to FTP Server 192.XXX.XXX.X:21

我阅读了各种 vsftpd ,然后将您的FTP用户详细信息存储在wp-config.php中,以避免进一步的身份验证请求.我看到的问题是,FTP被视为严重不安全,并且我希望避免将用户详细信息硬编码到WP安装中.

I read various tutorials, which suggest to install a FTP server, in particular vsftpd and then to store your FTP-User-details in the wp-config.php to avoid further authentication requestst. The problem I see is that, FTP is considered as severly unsecure and I would like to avoid hard-coding my user details into my WP-installation.

解决此问题的最安全,推荐的方法是什么?

What is the safest, recommended way to deal with this problem?

推荐答案

我不知道这是否是最安全的方法.但是将此代码粘贴到wp-config.php中就解决了我的问题:

I don't know if it is the safest method or not. But pasting this code in wp-config.php once solved my problem:

define('FS_METHOD', 'direct');

这篇关于Wordpress插件安装-无法连接到FTP服务器-最安全的解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆