Local Storage and Production storages differ

Hey, so I'm having an issue setting storage. On my local installation, storage is located at directory/storage/files, whereas on the server they understandably go to directory/public/storage/files. How do I fix this? I attempted to do the storage link, but it said it was already set. I'm sure it is some simple config somewhere, but I appreciate any help that can be provided!
Solution:
I think I fixed it. Looks like it had to do with permissions. changed FollowSymLinks to SymLinksIfOwnerMatch in .htaccess files.
Jump to solution
13 Replies
Dennis Koch
Dennis Koch8mo ago
Not sure I understand your issue 🤔
Steve_OH
Steve_OHOP8mo ago
The files are uploaded to
\storage\app\public
\storage\app\public
as opposed to
\public\storage
\public\storage
They upload to directory A, B is where the app looks for them
Dennis Koch
Dennis Koch8mo ago
The files are uploaded to \storage\app\public
That's the correct path.
as opposed to \public\storage
That one shouldn't exist. It should be a symlink
Steve_OH
Steve_OHOP8mo ago
it's not, how do I fix it?
Dennis Koch
Dennis Koch8mo ago
What's the output of readlink public/storage on your server?
Steve_OH
Steve_OHOP8mo ago
/home/user/domain.com/storage/app/public
/home/user/domain.com/storage/app/public
Modified the user and domain
Dennis Koch
Dennis Koch8mo ago
Looks good to me. So what's the actual issue you encounter?
Steve_OH
Steve_OHOP8mo ago
re-ran the sym link, said it created the link, but the files still don't load after uploading/saving the issue is when I upload images they show up as not found when loaded
Dennis Koch
Dennis Koch8mo ago
Where? FileUpload component? Table? Somewhere different? Any errors in console log?
Steve_OH
Steve_OHOP8mo ago
in the table view also when viewing the record. The link shows up when I inspect element, but the image appears as a broken image (hit enter too soon)
Solution
Steve_OH
Steve_OH8mo ago
I think I fixed it. Looks like it had to do with permissions. changed FollowSymLinks to SymLinksIfOwnerMatch in .htaccess files.
Dennis Koch
Dennis Koch8mo ago
Just wanted to ask what server you are using
Steve_OH
Steve_OHOP8mo ago
VPS with cwp installed Thanks for trying to work through it with me anyway
Want results from more Discord servers?
Add your server