Good! This means the public/storage
symlink exists—but, on cPanel, sometimes it’s a broken link, or not pointing where Laravel expects.
—
How to Safely Fix This
1. Remove the Existing Symlink
Go to your project root (/home/holidayallsites/public_html/bangaloreorbit.com/events/
) and run:
rm -rf public/storage
(Don’t worry, this just deletes the link, not your files!)
—
2. Re-create the Symlink
Now run:
php artisan storage:link
- You should see:
The [public/storage] directory has been linked.
—
3. Verify the Symlink
Check by running:
ls -l public/
Look for a line like:
storage -> ../storage/app/public
—
4. Fix Permissions
Set permissions to allow the web server to read files:
chmod -R 755 storage
chmod -R 755 public/storage
—
5. Test Image URL Directly
Open a direct browser link, e.g.:
https://events.bangaloreorbit.com/storage/users/default.png
- Or any file that exists in
storage/app/public/users/default.png
—
6. If you get 404 or still too many redirects:
- Double-check your
public/.htaccess
(should be the default Laravel version as shown earlier).
- Ensure there is not a
public/storage/index.php
file.
—
Bonus: .env Setting
APP_URL in .env
should be:
APP_URL=https://events.bangaloreorbit.com
Then clear cache:
php artisan config:clear
php artisan cache:clear
php artisan view:clear
php artisan route:clear
—
If it still fails:
- Paste the result of
ls -l public/
- Paste the content of your
public/.htaccess
- Tell me the exact error you see when opening
https://events.bangaloreorbit.com/storage/users/default.png
—
Do this, and your storage files will load. Let me know what you see after these steps!