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

jakeryansmith's avatar

Weird things with permissions and stale code after updating server.

Here is the problem: Anytime I deploy new code can't see the changes when running my app. I can confirm the code is being updated on the server and that the new code is in the latest releases directory. But when I try to run my app it behaves as it did before the changes.

This started happening after I did these updates on my server:

  1. Updated to PHP 7.2 via Forge
  2. Resized my droplet via Digital Ocean.

I'm not sure which one of these caused the problem as I did them around the same time. Nothing else has changed so I'm pretty sure one of those things is the culprit.

First I noticed that my app couldn't write to my storage directory. So I'm guessing the permissions somehow got changed. I just set the storage directory and everything in it to 777 and that fixed the issue of my app not being able to write to the directory worked. But I still get no code updates when I deploy.

I have the same app running on a different server with PHP 7.2 and provisioned by forge and it does not have this same issue, so I don't think it's my code.

Any help would be much appreciated!

0 likes
1 reply
jakeryansmith's avatar

So I noticed when monitoring my server on Digital Ocean it lists both PHP php-fpm7.1 and php-fpm7.2. I wonder if Envoyer is restarting php-fpm7.1 instead of php-fpm7.2? Any suggestions on what to do here?

Please or to participate in this conversation.