---
title: "How to Remove NGINX From Your Server"
description: "If you no longer want NGINX on your server, you can easily remove the package to uninstall it. In this tutorial we will walk you through removing NGINX from your cPanel server. First, you will have..."
url: https://www.inmotionhosting.com/support/server/nginx/remove-nginx/
date: 2017-08-15
modified: 2025-01-22
author: "InMotion Hosting Contributor"
categories: ["NGINX"]
type: post
lang: en
---

# How to Remove NGINX From Your Server

If you no longer want **NGINX** on your server, you can easily *remove* the package to uninstall it. In this tutorial we will walk you through removing NGINX from your cPanel server. First, you will have to change the *listening ports* back to the *default* settings in WHM. Then we will show you how to remove NGINX from your server via SSH.

**Note:** If you need assistance making changes to your server, we offer professional [Manage Hosting](https://www.inmotionhosting.com/solutions) services.

## Change Listening Ports

1. [Log into WHM](https://www.inmotionhosting.com/support/edu/whm/log-into-whm/) as the ‘root’ user.
2. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/07/nginx_tweak-settings.png)](/support/wp-content/uploads/2017/07/nginx_tweak-settings.png)Click the **Tweak Settings** link in the *Server Configuration* section. 
3. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/07/nginx_tweak-system-settings.png)](/support/wp-content/uploads/2017/07/nginx_tweak-system-settings.png)On the *Tweak Settings* page click the *right arrow* to scroll, then click the *System* tab when you see it. 
4. [![Set Default Listening Ports](https://www.inmotionhosting.com/support/wp-content/uploads/2017/08/nginx_default-non-ssl-ports.png)](/support/wp-content/uploads/2017/08/nginx_default-non-ssl-ports.png)Scroll down to the **Apache non-SSL IP/port** options and select the following *default* option: 0.0.0.0:80 default 
5. [![Set Default SSL Port](https://www.inmotionhosting.com/support/wp-content/uploads/2017/08/nginx_default-ssl-ports.png)](/support/wp-content/uploads/2017/08/nginx_default-ssl-ports.png)Navigate to the **Apache SSL port** setting and select the following option:0.0.0.0:443 default 
6. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/07/nginx_save.png)](/support/wp-content/uploads/2017/07/nginx_save.png)Scroll down to the bottom of the page and click the **Save** button to open the listening ports. 

## Removing NGINX

1. Connect to your server as the ‘root” user via SSH.
2. Run the following command to install NGINX.yum remove imh-nginx
3. You will see the following message, type ‘**y**‘ for yes then click the **enter** key.Remove 1 Package (+2 Dependent packages)Installed size: 3.7 MIs this ok [y/N]: yThe NGINX package will then be removed. You are finished when you see a *Complete!* message such as this:Removed: imh-nginx.x86_64 0:1.13.3-2.el7Dependency Removed: imh-cpanel-cache-manager.noarch 0:1.0-3.el7 imh-ngxconf.noarch 0:0.9.10-1.el7Complete!

Congratulations, now you know how to **remove NGINX** from your web server.
