Hi @torriv
Have a look to this https://laracasts.com/discuss/channels/laravel/storage-link-returning-404-on-production
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hi,
I'm trying to get the symbolic link to work. using storage:link doesn't work, so i have to do it manually.
I can see that there is a storage folder in my public folder with a link, but when i try to click on it through my FTP client, i get "no such file or directory", and on my page it say 403 forbidden.
My folder structure is like this:
I have left out a lot of folders, but hope you get the idea.
I'm using buddy.works for deployment,
and here is the code being run at the end:
if [ -d "releases/$BUDDY_EXECUTION_REVISION" ] && [ "$BUDDY_EXECUTION_REFRESH" = "true" ];
then
echo "Removing: releases/$BUDDY_EXECUTION_REVISION"
rm -rf releases/$BUDDY_EXECUTION_REVISION;
fi
if [ ! -d "releases/$BUDDY_EXECUTION_REVISION" ];
then
echo "Creating: releases/$BUDDY_EXECUTION_REVISION"
cp -dR deploy-cache releases/$BUDDY_EXECUTION_REVISION;
fi
echo "Linking current to revision: $BUDDY_EXECUTION_REVISION"
rm -f current
ln -s releases/$BUDDY_EXECUTION_REVISION current
ln -s current/storage/app/public current/public/storage <---- My attempt to make a symbolic link
echo "Removing old releases"
cd releases && ls -t | tail -n +11 | xargs rm -rf
cd $BUDDY_EXECUTION_REVISION
composer install -o --no-interaction
php artisan optimize
php artisan cache:clear
php artisan route:cache
php artisan view:clear
php artisan config:cache
If anyone know what's going on, please help! :)
Yes i have checked the permissions on my folders.
Thanks in advance
Please or to participate in this conversation.