How to Uninstall mod_wsgi from Ubuntu


uninstall mod_wsgi from ubuntu

mod_wsgi module allows you to host Python web applications in Apache web server. However, in case you are moving to a different stack or if mod_wsgi is giving problems, you might need to uninstall it from your system. Here’s how to uninstall mod_wsgi from Ubuntu.

 

How to Uninstall mod_wsgi from Ubuntu

Here are the steps to uninstall mod_wsgi from Ubuntu

 

1. Uninstall libapache2-mod-wsgi

First you need to uninstall libapache2-mod-wsgi from Ubuntu


$ sudo apt-get remove libapache2-mod-wsgi

 

2. Remove libapache2-mod-wsgi & its dependencies

Next, remove libapache2-mod-wsgi and its dependencies that you no longer need in Ubuntu


$ sudo apt-get remove --auto-remove libapache2-mod-wsgi

 

3. Delete Config & data

Next, purge configuration and data files from Ubuntu


$ sudo apt-get purge libapache2-mod-wsgi

 

Finally, purge all its config and data files from Ubuntu


$ sudo apt-get purge --auto-remove libapache2-mod-wsgi

 

That’s it! You have uninstalled mod_wsgi from Ubuntu

About Sreeram Sreenivasan

Sreeram Sreenivasan is the Founder of Ubiq, a business dashboard & reporting platform for small & medium businesses. Ubiq makes it easy to build business dashboards & reports for your business. Try it for free today!