Moving the storage/ directory
The storage/ can be moved outside the web root directory to prevent unauthorised access to its
contents via the web.
-
Recursively move the
storage/directory to the intended destination. For example:mkdir -p /sp-storage mv /var/www/html/storage /sp-storage -
Define the
STORAGE_PATHenvironment variable:STORAGE_PATH=/sp-storage