Storage Link and Bassets in a shared hosting environment #1270
Unanswered
qontori
asked this question in
Q&A (Help)
Replies: 1 comment
-
Hey @qontori Generally, the
And the symlink is present inside The problem, I can assume, is that you can't reconfigure the public dir path on shared cpanel hosting. I found a tutorial that seems very similar to your implementation. This also includes creating a system link(step 6). I hope this will help. You can also force Basset to use CDN links directly rather than caching files in storage. For this, you just need to add the following to your
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am a little confused over the implementation / need for the storage link in a shared hosting environment (Cpanel).
I have duplicated my questions here and at the bottom of this message for ease of reading.
Thanks in advance for your assistance ...
Questions
In version 4 I have the following Folder Structure and have been running my backpack / laravel app successfully. I do not use any form of symlink / storage linking and have just everything set at default. My Folder Structure is
Folder Structure v4 Cpanel shared hosting
config files app, filesystems, all default
I am in the process of upgrading to version 6 [with the help of a freelancer] and things appear to be working correctly however I noticed some strange behavior, configurations and questioned some of their documentation before a live upgrade. Here is the V6 backpack/laravel folder structure noting one new folder username/public_html/mypublicfolder
Folder Structure v6
Storage Link
php artisan basset:check
I ran 'php artisan basset:check' from the username/myapp folder and received the following results
Initializing basset check ................................................................................................................... DONE
Checking cache storage ...................................................................................................................... DONE
Fetching a basset .......................................................................................................................... ERROR
ERROR Error fetching the file.
Backpack Basset failed to check it's working properly.
│
│ This may be due to multiple issues. Please ensure:
│ 1) APP_URL is correctly set in the .env file.
│ 2) Your server is running and accessible at https://username.mydomain.com/mypublicfolder
│ 3) The public disk is properly configured in config/filesystems.php.
│ Optionally, basset provides a disk named "basset", you can use it instead.
│ 4) The storage symlink exists and is valid (by default: public/storage).
APP_URL
APP_URL=https://username.mydoman.com
ASSET_URL=https://username.mydomain/mypublicfolder
filesystemsphp
Questions
Thanks again
Beta Was this translation helpful? Give feedback.
All reactions