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

ChrisExP's avatar

New deployments aren't being served by nginx

I recently upgraded my servers to PHP 7.1 through forge (this may just be coincidence) and now whenever I deploy nginx is no longer looking at the current directory.

I found this out because after deploying 4 times the site went down trying to find a file in a release folder that no longer exists.

After restarting nginx (through forge) the site comes back online but then 4 deployments later it goes down again.

It seems as though nginx is caching the symlink or something like that.

0 likes
1 reply
ChrisExP's avatar
ChrisExP
OP
Best Answer
Level 3

I found the problem. I hadn't updated the server info in envoyer to PHP 7.1. So it was restarting the wrong fpm.

Doh

Please or to participate in this conversation.