How do I add Nginx to Features and Plugins

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Webmin version 2.001
Virtualmin version 7.2-1
Related packages nginx

I believe that when I installed Virtualmin, I chose the default LAMP instead of LEMP. I removed Apache from the system and installed Nginx. I have a few websites that have Nginx-enabled websites. However I don’t see Nginx in the list of available “Features and Plugins” in Virtualmin. Can I just install the virtualmin-lemp-stack-minimal package to get Nginx to be recognized with Webmin/Virtualmin? Is this going to mess up the sites I already have configured with Nginx by overwriting their configurations or something?

These are the changes it will make:

# apt install virtualmin-lemp-stack-minimal
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  awstats bind9 bind9-utils certbot clamav clamav-base clamav-freshclam
  etckeeper fcgiwrap firewalld geoip-database gir1.2-nm-1.0 ipset
  jailkit libclamav9 libdbd-mysql-perl libdbi-perl libgeoip1
  libhiredis0.14 libipset13 libmemcachedutil2 libnet-xwhois-perl
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext
  libnginx-mod-http-echo libnginx-mod-http-subs-filter
  libnginx-mod-http-upstream-fair libnm0 libtfm1 mysql-client nginx-full
  ntpdate php-pear proftpd-basic proftpd-core proftpd-doc
  proftpd-mod-crypto proftpd-mod-wrap python3-acme python3-cap-ng
  python3-certbot python3-configargparse python3-distutils
  python3-firewall python3-icu python3-josepy python3-jsonschema
  python3-lib2to3 python3-nftables python3-parsedatetime
  python3-pyrsistent python3-rfc3339 python3-setuptools python3-tz
  python3-zope.component python3-zope.event python3-zope.hookable quota
  spamc unrar webalizer webmin-virtualmin-nginx
  webmin-virtualmin-nginx-ssl zip
Suggested packages:
  libnet-dns-perl libnet-ip-perl libgeo-ipfree-perl bind-doc resolvconf
  python-certbot-doc python3-certbot-apache python3-certbot-nginx
  libclamunrar clamav-docs libclamunrar9 libmldbm-perl
  libnet-daemon-perl libsql-statement-perl geoip-bin nginx-doc
  openbsd-inetd | inet-superserver proftpd-mod-ldap proftpd-mod-mysql
  proftpd-mod-odbc proftpd-mod-pgsql proftpd-mod-sqlite
  proftpd-mod-geoip proftpd-mod-snmp python-acme-doc
  python-jsonschema-doc python-setuptools-doc libnet-ldap-perl rpcbind
  spamassassin postgresql postgresql-client libdbd-pg-perl libpg-perl
  clamav-daemon clamav-testfiles libconfig-inifiles-perl postgrey
  milter-greylist
The following NEW packages will be installed:
  awstats bind9 bind9-utils certbot clamav clamav-base clamav-freshclam
  etckeeper fcgiwrap firewalld geoip-database gir1.2-nm-1.0 ipset
  jailkit libclamav9 libdbd-mysql-perl libdbi-perl libgeoip1
  libhiredis0.14 libipset13 libmemcachedutil2 libnet-xwhois-perl
  libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext
  libnginx-mod-http-echo libnginx-mod-http-subs-filter
  libnginx-mod-http-upstream-fair libnm0 libtfm1 mysql-client nginx-full
  ntpdate php-pear proftpd-basic proftpd-core proftpd-doc
  proftpd-mod-crypto proftpd-mod-wrap python3-acme python3-cap-ng
  python3-certbot python3-configargparse python3-distutils
  python3-firewall python3-icu python3-josepy python3-jsonschema
  python3-lib2to3 python3-nftables python3-parsedatetime
  python3-pyrsistent python3-rfc3339 python3-setuptools python3-tz
  python3-zope.component python3-zope.event python3-zope.hookable quota
  spamc unrar virtualmin-lemp-stack-minimal webalizer
  webmin-virtualmin-nginx webmin-virtualmin-nginx-ssl zip
0 upgraded, 65 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.8 MB of archives.
After this operation, 58.7 MB of additional disk space will be used.

Hello,

In this case scenario we always recommend to re-install, as it will be much faster for any regular user then fixing a problem.

When installing Virtualmin make sure to choose the correct bundle. For LEMP stack (with Nginx set as default web server) run:

sh virtualmin-install.sh -b LEMP

Thanks for the response, but that seems like it would probably be really destructive. I don’t want it to overwrite all of the settings. Executing apt install webmin-virtualmin-nginx webmin-virtualmin-nginx-ssl seemed to have done the trick and it only installed those two packages.

Then you should also run:

virtualmin-config-system -i=Nginx

I’m not sure if executing that was necessary since it appeared to work without it, but thanks.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.