我正在运行Ghost当我通过管理门户上传主题时,出现此错误:
EACCES: permission denied, mkdir '/var/www/my.website/content/themes/London-master'
我确定这是一个权限错误,但我一直在寻找如何修复它。运行ghost程序的用户是
ghost_server_user
我正在使用 Ubuntu 20.04 服务器。编辑:我在机器上拥有完全的 root 访问权限。
最佳答案
根据 Ghost 文档,您必须为 Ghost 安装目录配置正确的权限。 Ghost 不应以 root 用户身份安装。
尝试再次为文件夹设置正确的权限。
# Set directory owner: Replace <user> with the name of your user
sudo chown <user>:<user> /var/www/sitename
# Set the correct permissions
sudo chmod 775 /var/www/sitename
关于ubuntu - 无法将文件上传到我的网络服务器,权限错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67455707/