Question

How do you expand your web files into Block Storage

Posted February 20, 2017 2.5k views
UbuntuApacheBlock Storage

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.

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.

×
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

Submit an Answer