mikegnade
By:
mikegnade

How do you expand your web files into Block Storage

February 20, 2017 526 views
Apache Block Storage Ubuntu

Hey I recently created a block storage volume and successfully moved all of my websites /videos folder to the volume and then used an Apache alias to successfully point to this repository. The problem is that my php script that processes the video is no longer accessible via the web with the alias in Apache. So I've undone the alias while I wait for an answer on the best way to expand a droplet/website with storage. I haven't been able to find an answer on how to run php scripts on the block storage volume. Any help is much appreciated.

1 Answer

I would probably create a symbolic link:
ln -s /blockstorage/video-folder /var/www/html/web-video-folder
Remember not to add slashes to the end, since it's a folder. And the web-video-folder is not allowed to exists, since that would be the link blockstorage.
If you want to remove the link again, just use this:
unlink /var/www/html/web-video-folder

Have another answer? Share your knowledge.