Update WordPress Inside Docker Container Required FTP Access

今日Update WordPress 既時候出現了

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一樣便可


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

Hope you find it useful

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.