[英]Can't upload a file to my webserver, permission error
我正在運行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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.