How to uninstall nginx from linux cpanel server Go to the path where you have downloaded the tar file on nginx. I have downloaded that file in the below path. cd /usr/local/src Go inside nginx folder cd publicnginx run the below command to unsinstall it. ./nginxinstaller uninstall