Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to restart PHP-FPM from deployment script ? #270

Closed
gaetan-hexadog opened this issue Aug 4, 2024 · 3 comments
Closed

How to restart PHP-FPM from deployment script ? #270

gaetan-hexadog opened this issue Aug 4, 2024 · 3 comments
Labels
question Further information is requested

Comments

@gaetan-hexadog
Copy link

Hi,

how can I restart PHP-FPM from a deployment script ?

regards

@gaetan-hexadog gaetan-hexadog added the bug Something isn't working label Aug 4, 2024
@saeedvaziry saeedvaziry added question Further information is requested and removed bug Something isn't working labels Aug 4, 2024
@saeedvaziry
Copy link
Member

saeedvaziry commented Aug 4, 2024

You can just run a command in your script to restart

sudo systemctl restart phpX.Y-fpm

for example for PHP 8.1

sudo systemctl restart php8.1-fpm

@gaetan-hexadog
Copy link
Author

gaetan-hexadog commented Aug 4, 2024

Hi @saeedvaziry

Running a cmd with sudo will ask for the password ! Right ? How to manage that with deployment script ?

@gaetan-hexadog gaetan-hexadog changed the title How to restart PHP-FPM from deplopyment script ? How to restart PHP-FPM from deployment script ? Aug 11, 2024
@saeedvaziry
Copy link
Member

@gaetan-hexadog vito user has enough permissions, it should not ask for password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants