I am begging to run out of storage on my droplet. There is one folder in particular that stores images that is taking up the space. Rather than changing my droplet specs, it seems as though a volume would solve the problem. Unfortunately, I am unable to get a volume to work with this setup (CentOS/Plesk). The volume is mounted here /mnt/volume_nyc1_01 and I attempted to make a symlink from var/www/vhosts/website.com/httpdocs/storage. After ensuring the owner/and group were correct I still ran into 403 permission errors. I then attempted to mount the volume directly to var/www/vhosts/website.com/httpdocs/storage but still ran into permission issues. After reading some tutorials here, I discovered my problem may be with SELinux permissions. It is enabled on my server. I attempted to use httpd_sys_rw_content_t with semanage & restorecon. This allowed me to view the files via a web browser but my scripts are still unable to write to these directories. Is there a simpler more straightforward way to do this without turning off SELinux?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!