---
title: "How to Restart PHP-FPM"
description: "In this article we're covering how to restart the PHP-FPM (PHP-FastCGI Process Manager) service to clear the VPS cache. After enabling PHP-FPM in WHM, you may need to restart the service after a..."
url: https://www.inmotionhosting.com/support/server/php-fpm/how-to-restart-php-fpm/
date: 2018-08-24
modified: 2021-11-19
author: "InMotion Hosting Contributor"
categories: ["PHP-FPM"]
type: post
lang: en
---

# How to Restart PHP-FPM

In this article we’re covering how to restart the PHP-FPM (PHP-FastCGI Process Manager) service to clear the VPS cache. After [enabling PHP-FPM](/support/server/php-fpm/how-to-enable-php-fpm-using-whm/) in WHM, you may need to restart the service after a server-wide error resulting in websites showing *500 Internal Server Error* or [PHP version changes](/support/website/how-to-change-the-php-version-your-account-uses/). There are two possible methods:

[WHM](#whm) [SSH](#ssh)

## WHM

1. [Log into WHM as root](/support/edu/whm/log-into-whm/#whm-root-access).
2. Search “*PHP-FPM*” and select **PHP-FPM service for Apache**. [![Screenshot in WHM selecting PHP-FPM service for Apache](https://www.inmotionhosting.com/support/images/stories/whm/multiphp-manager/php-fpm/whm-php-fpm-1-select.png)](https://www.inmotionhosting.com/support/images/stories/whm/multiphp-manager/php-fpm/whm-php-fpm-1-select.png)
3. Select **Yes** to restart the PHP-FPM service. [![Screenshot in WHM selecting Yes to restart PHP-FPM service](https://www.inmotionhosting.com/support/images/stories/whm/multiphp-manager/php-fpm/whm-php-fpm-2-restart.png)](https://www.inmotionhosting.com/support/images/stories/whm/multiphp-manager/php-fpm/whm-php-fpm-2-restart.png)
4. [Check the updated website](#nginx).

## SSH

1. Ensure you have [root access](/support/amp/obtain-root-access/) enabled in AMP.
2. [SSH into your server](/support/server/ssh/how-to-login-ssh/) as root.
3. Type the command /scripts/restartsrv_apache_php_fpm to restart **PHP-FPM**. The results should mirror below: [![Screenshot in SSH completing PHP-FPM restart command resulting in ](https://www.inmotionhosting.com/support/images/stories/whm/multiphp-manager/php-fpm/whm-php-fpm-3-ssh.png)](https://www.inmotionhosting.com/support/images/stories/whm/multiphp-manager/php-fpm/whm-php-fpm-3-ssh.png)
4. [Check the updated website](#nginx).

You should be able to see the updated website after [clearing your browser cache](/support/website/how-to-clear-browser-cache-for-major-browsers/) or [using a private window](/support/resources/how-to-start-a-private-browsing-session/). If installed, you may also want to clear the **Nginx** cache using cPanel [Cache Manager](/support/website/cache-manager-cpanel/) or SSH command

service nginx restart
or

systemctl restart nginx
You can read more detailed information in our in-depth [PHP-FPM article](/support/server/php-fpm/php-fpm-the-future-of-php-handling/) and comparison between [it and SuPHP](/support/server/php-fpm/suphp-vs-php-fpm/).
