0
votes

I have a new instance and everything was going fine, I have the site installed and transferred over my database and uploaded most my wordpress file to the server.

But towards the end of my upload, files stopped being uploaded and I keep getting the message ***Error: Directory /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/2017/01: no such file or directory

Command: cd "/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/2017"

Response: New directory is: "/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/2017"

Command: mkdir "01"

Error: mkdir /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/2017/01: permission denied

Command: mkdir "/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/2017/01"

Error: mkdir /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/2017/01: permission denied***

I've tried changing the permissions to 755 or 644 but get this error

***Status: Setting permissions of '/opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/2017/07' to '644'

Command: chmod 644 "07"

Error: set attrs for /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads/2017/07: permission denied***

Video file transfer: https://www.screencast.com/t/d8BbFnxkp

Video permission fail: https://www.screencast.com/t/2XBr6zwqd

I'm just puzzled why the other transfers worked

Thanks for your help.

1

1 Answers

1
votes

I found this solution that appears to work.

sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads sudo chmod -R 775 /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads

Then, you can try to upload and check if it works. If it doesn't, you can try doing this instead:

sudo chown -R daemon:daemon /opt/bitnami/apps/wordpress/htdocs/wp-content/uploads