Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Fiton012's avatar

Read-only file system error on artisan storage:link command

I am trying to deploy to vapor from my local machine. My local set up has a folder storage/app/media in order to expose it to public folder I am using the artisan storage:link command which works fine locally. I am also using the same command in the .vapor.yml under deploy. However when I am trying to deploy to vapor I am getting the following error.

ErrorException symlink(): Read-only file system

Is there a way to overcome this issue or I do necessarily have to put my files under public folder directly?

0 likes
1 reply
Tray2's avatar

You need to chmod the storage directory.

Try this

sudo chmod -R 755 storage

Please or to participate in this conversation.