PHP is a programming language, not a server or service that can be restarted. However, if you meant to restart the PHP-FPM service on your DigitalOcean droplet, follow these steps:

  1. SSH into your droplet using your preferred SSH client.
  2. Once you are logged in to your droplet, run the following command to restart PHP-FPM:
sudo systemctl restart php7.4-fpm

Note: The version number may vary depending on the PHP version you have installed on your droplet.

  1. Wait for PHP-FPM to restart completely. You can monitor the progress using the SSH client or by checking the website hosted on your droplet.

That’s it! PHP-FPM on your DigitalOcean droplet has been restarted.

Similar Posts