How to Remove NGINX From Your Server Updated on January 22, 2025 by InMotion Hosting Contributor 1 Minutes, 18 Seconds to Read 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 services. Change Listening Ports Log into WHM as the ‘root’ user. Click the Tweak Settings link in the Server Configuration section. On the Tweak Settings page click the right arrow to scroll, then click the System tab when you see it. Scroll down to the Apache non-SSL IP/port options and select the following default option: 0.0.0.0:80 default Navigate to the Apache SSL port setting and select the following option:0.0.0.0:443 default Scroll down to the bottom of the page and click the Save button to open the listening ports. Removing NGINX Connect to your server as the ‘root” user via SSH. Run the following command to install NGINX.yum remove imh-nginx 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. Share this Article IC InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles HTTP Strict Transport Security (HSTS) in NGINX Basic NGINX Commands How to Manage NGINX How to Create NGINX Redirects Advanced NGINX Stack Configuration for VPS and Dedicated Servers How to Remove NGINX From Your Server What is NGINX? How to Fix Nextcloud Not Working With NGINX Hide Your NGINX Server Version How to Install NGINX on cPanel