Update WordPress Inside Docker Container Required FTP Access

今日 Update WordPress 既時候出現了
輸入 FTP 資料的畫面

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

原因是因為有些 wordpress 的資料夾沒有 權限去 access
解決方法
我們只需要把這個資料夾的 ownership 設定和這個 container 一樣便可

e.g.

sudo chown -R www-data:www-data wordpress

Hope you find it useful

Chi Yau
Chi Yau
Software Developer

Intererest to share knowledge / experience

comments powered by Disqus