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

positonic's avatar

Deploying with Forge resets file permisssions

I'm running this on a Laravel Forge server, and periodically (perhaps after a deploy I'm not sure) the file permissions on the Laravel.log file are changing, or at least I'm getting an error that it can't open the laravel.log file. and I have to go to back in and run these commands :

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache 

Does anyone know the cause of this?

0 likes
8 replies
Cronix's avatar

I don't know what's causing it, but you could add those commands to the deployment script so it runs them automatically when you deploy to the server.

positonic's avatar

@CRONIX - Yeah that's an idea, but I would prefer to know what's causing this first :)

positonic's avatar

@CRONIX - Erm, I'm not seeing support anywhere, are you sure there is support with Forge, and if so where is it?

Cronix's avatar

Log into Forge, click large big blue circle in lower right of screen.

1 like

Please or to participate in this conversation.