Laravel Homestead & WordPress 删除插件需要 FTP?



虽然我安装了wp-cli,但我不希望这会在开发中带来任何潜在的进一步问题。我让Homestead通过流浪突变和Apache中的WP站点(通过NFS同步文件夹(与libvirt提供程序(而不是Virtualbox,例如(一起运行。但要删除插件,它会说:"要执行请求的操作,WordPress需要访问您的web服务器。请输入您的FTP凭据才能继续。"我尝试在站点目录中执行chown -Rf www-data.www-data .,结果所有内容都显示"未指定输入文件",所以我只是重新安装了它。我该怎么办?

// find your full path by PWD (Present working directory) Linux command then try following example command 
pwd 
// Check this command in SSH 
chown -R www-data:www-data /your/target/fullpath/
// you may try with Sudo power 
sudo  chown -R www-data:www-data /your/target/fullpath/
// if you need this ownership change for all sub foders 
chown -R maximilian:maximilian /your/target/fullpath/

最新更新