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

en2ie's avatar
Level 2

OPCache and verifying that PHP FPM is reloaded in the deployment script

I have enabled the OPCache via the new button in the php tab on forge - and it says to verify that the PHP FPM service is reloaded during deployments.

Im using the default deployment script that has the line "sudo -S service php7.1-fpm reload" which I believe is correct.

I don't know much about linux servers etc. How do I verify that the php service is actually being reloaded?

0 likes
1 reply
afrayedknot's avatar

You can click "view latest deployment log" in Forge to see the output of the last deployment.

You wont see anything if the reload was successful - but if there were any errors they would appear there (and Forge would also alert you).

So the absence of errors implies it worked.

You could also try this package - which would give you a status of your opcache: https://github.com/rlerdorf/opcache-status

Please or to participate in this conversation.