每次我尝试在我的 WordPress 网站中安装插件或主题时,系统都会提示我输入 FTP 凭据(ftp 用户名、ftp 密码、主机地址)。
我该如何预防?
最佳答案
由于无法访问文件,系统会提示您输入 FTP 凭据。
有两个选项可以遵循:
- 在/wp-config.php 文件中提供 FTP 凭据:
define( 'FTP_USER', 'username' );
define( 'FTP_PASS', 'password' );
define( 'FTP_HOST', 'ftp.example.com:21' );
- 通过 SO 帖子中显示的检查:
Can I install/update WordPress plugins without providing FTP access?
关于php - WordPress : Asking FTP credentials when trying to install a plugin or theme,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37019903/