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.