wordpress - 无法连接到文件系统。请确认您的凭据

标签 wordpress macos ftp localhost elementor

我试图在 localhost 的 Mac 上为 wordpress 安装 Elementor 插件,但安装失败。这些是细节:

主机名:/Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-content/plugins
FTP用户名:root
密码:

使用密码,我收到此错误警报:

Failed to connect to FTP Server /Applications/XAMPP/xamppfiles/htdocs/wordpress/wp-content/plugins:21

在没有密码的情况下,我收到了此错误警报:
Unable to connect to the filesystem. Please confirm your credentials.

我搜索了类似的情况,发现必须在代码中添加这一行:
define('FS_METHOD','direct’);

然后我收到了这条消息:
Installation failed. could not create directory.

我不熟悉代码编写,而且我是 Wordpress 的新手,非常感谢您的帮助。

问候

最佳答案

试试这个命令,因为它不会将你的整个 html 暴露给黑客,这在我的情况下有效

sudo chown -R www-data:www-data /var/www/html/your-project-name

关于wordpress - 无法连接到文件系统。请确认您的凭据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57239961/

相关文章:

mysql - Woocommerce 产品计数在 taxonemy 页面上,总是页面计数 +1,分页仅显示下一页。 AWS、Nginx、HHVM、极光

swift - 无法通过 CoreBluetooth 发现蓝牙鼠标和键盘(macos Swift)

objective-c - objective-c : How to know the progress of unzipping in using ZipArchive

delphi - 用于Delphi中FTP的WinInet包装器

css - 如何在不使用 <br/> 或 "display:block"的情况下为 anchor 换行

php - Wordpress 模板中框的 CSS 网格

linux - 使用 Linux 从文件名中包含前一周日期的 FTP 位置获取所有文件

ubuntu - Windows Azure Ubuntu - 500 OOPS : priv_sock_get_cmd error while making an FTP connection

html - 如何在 iframe 周围创建边框?

mysql - 如何在 OS X 上运行 MySQL?