ubuntu - 无法将文件上传到我的网络服务器,权限错误

标签 ubuntu permissions ghost-blog

我正在运行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/

相关文章:

javascript - 从 Sharepoint 2007 的权限掩码中读取个人权限

c++ - Visual Studio 2013 是否以比手动运行 .exe 更高的权限运行应用程序?

node.js - Ghost博客-无法连接mysql

mongodb - 如何在 Ubuntu 上安装 64 位版本的 mongodb?

git - ubuntu中的bash函数

linux - 无法将 mosquitto-clients 从 1.4.15 更新到 1.6.9

powershell - 在 ubuntu 机器上使用 powershell 获取 SSL 证书到期日期

Android CALL_PHONE 权限问题

node.js - 生产环境配置ghost blog

nginx - 通过 FTP 传输到现有 Docker 容器