Moving the storage/ directory


The storage/ can be moved outside the web root directory to prevent unauthorised access to its contents via the web.

  1. Recursively move the storage/ directory to the intended destination. For example:
    mkdir -p /sp-storage
    mv /var/www/html/storage /sp-storage
  2. Define the STORAGE_PATH environment variable:
    STORAGE_PATH=/sp-storage


Article Number: 183
Author: Jul 18, 2024
Last Updated: Jul 18, 2024

Online URL: https://docs.supportpro.vn/article/moving-the-storage-directory-183.html