Skip to content

How to setup Nginx on Webmin?

Installing Virtualmin wget http://software.virtualmin.com/gpl/scripts/install.sh Run the script to install Virtualmin. sh /root/install.sh Follow on-screen guide to install this. systemctl stop apache2.service…

Sohaib Khan1 min read
How to setup Nginx on Webmin? — editorial illustration

Installing Virtualmin

Shell1 line
wget http://software.virtualmin.com/gpl/scripts/install.sh

Run the script to install Virtualmin.

PLAINTEXT1 line
sh /root/install.sh

Follow on-screen guide to install this.

PLAINTEXT1 line
systemctl stop apache2.service

Installing Nginx Now that the Apache is not running, you’ll be able to install Nginx. The following command will install it on your Debian 9.x

Shell1 line
apt-get install nginx

Now install Virtualmin modules to support Nginx and Nginx SSL,

Shell1 line
apt-get install webmin-virtualmin-nginx webmin-virtualmin-nginx-ssl

Installing PHP 7 Modules I installed bunch of modules as I am running Magento 2.x

Shell1 line
apt-get -y install php-fpm php-cli php-gd php-imagick php-mysql php-mcrypt php-pear php-curl php-intl php-xsl php-zip php-mbstring php-soap php-imap memcached php7.0-mysql php7.0-curl php7.0-gd php-pear php-imagick php7.0-imap php7.0-mcrypt php-memcache php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-mbstring php7.0-zip

Configuring Virtualmin to enable Nginx The next and final step is to disable Apache and few other features. Go to System Settings -> Features and Plugins from your Virtualmin dashboard and, Enable Nginx website Nginx SSL website Disable Apache website SSL website DAV Login Mailman Protected web directories AWstats reporting Subversion repositories

Was this worth your time?

Continue reading

Full archive

17 min read

Automating Proxmox VM Deployment

In the world of virtualization and infrastructure management, efficiency is everything. Today, I'm excited to share our latest automation script that transforms the traditionally manual process of creating virtual…

5 min read

DocFlux 2.0: A PDF Knowledge Base

In this post, I’ll walk you through the journey of building DocFlux 2.0, a robust PDF knowledge base application using Python, FastAPI, and cutting-edge NLP tools like OpenAI’s API. We’ll also cover how the frontend…