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

cwray-tech's avatar

Permissions for storage directory

I am having an issue where I can only run artisan commands like cache:config from sudo in order for the command to work. I am getting an error whenever I try to just run artisan config:cache due to permission settings on the server.

How do I give myself permissions to do this on the live server?

0 likes
2 replies
thetoad01's avatar

Add yourself to the www-data group and make sure that group has full control of folders in the project.

1 like

Please or to participate in this conversation.