How to reset Read write permission in AWS lightsail for wordpress

时间:2018-02-05 13:00:58

标签: wordpress amazon-web-services ftp

Have a look at this image : http://prntscr.com/iadnrl

Adding new theme to Wordpress after deleting all tables and data. While activating new theme getting this mentioned error of connection FTP.

I already tried following commands , seems does not worked.

  • sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs
  • sudo passwd bitnamiftp

Hosting is on AWS Lightsail. Please share your views.

1 个答案:

答案 0 :(得分:0)

  

在运行这些命令之前进行备份。我不对任何错误负责。

以下命令对我有用。请务必将bitnami替换为正确的用户。

更改为所有文件的正确权限

find /opt/bitnami/apps/wordpress/htdocs -type f -exec chmod 0644 {} \;
find /opt/bitnami/apps/wordpress/htdocs -type f -exec chown bitnami: {} \;

更改为所有文件夹的正确权限

find /opt/bitnami/apps/wordpress/htdocs -type d -exec chmod 0755 {} \;
find /opt/bitnami/apps/wordpress/htdocs -type d -exec chown bitnami: {} \;