Block Storage with Wordpress No Longer Web Writable in Ubuntu 20.04?
I have previously set up my wordpress installation successfully, with a mount at /mnt/MNTNAME and a symlink in my wordpress web directory ../public_html/wp-content/uploads. This was in Ubuntu 18.04. All was well, able to upload media in wordpress without issue.
I am working on an upgrade to the server, and migrated the install, and wasn’t able to figure out why on the new server, everything works except media uploads in wordpress.
Unable to create directory wp-content/uploads/.... Is its parent directory writable by the server?
After many hours of investigation, I think I’ve finally narrowed it down. Since the /mnt/ folder is outside of the web-writeable ../public_ html, the error comes up. As soon as I move the mnt into /public_ html, it works. This was not the case before. Any suggestions on how I can keep the previous setup and still get uploads to work with /mnt/ outside of the web writeable directory?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×