Install and Configure Nginx support on Webmin Virtualmin

Apache web server installed by default with Virtualmin module in Webmin, but
Install and Configure Nginx on Virtualmin :
Here I have followed this on CentOs 7 , CentOs 6 , RHEL 7 , RHEL 6 .
(1) Stop the apache and disable on boot :

Stop the apache service with disable the apache automatic start from boot process.
# service httpd stop
# chkconfig httpd off
(2) Install Nginx web server with yum command.
# yum install nginx
(3) Start the Nginx web server on CentOS , RHEL :
CentOS 7 / RHEL 7 :
# systemctl start httpd
# systemctl enable httpd
CentOS 6 / RHEL 6 :
# service nginx start
# chkconfig nginx on
(4) Install Control Virtualmin Nginx plugin :
# yum install wbm-virtualmin-nginx wbm-virtualmin-nginx-ssl

Resolving Dependencies
–> Running transaction check
—> Package wbm-virtualmin-nginx.noarch 0:1.8-1 will be installed
—> Package wbm-virtualmin-nginx-ssl.noarch 0:1.4-1 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
wbm-virtualmin-nginx noarch 1.8-1 virtualmin-universal 136 k
wbm-virtualmin-nginx-ssl noarch 1.4-1 virtualmin-universal 11 k

Transaction Summary
================================================================================
Install 2 Packages

Total download size: 147 k
Installed size: 357 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): wbm-virtualmin-nginx-ssl-1.4-1.noarch.rpm | 11 kB 00:00
(2/2): wbm-virtualmin-nginx-1.8-1.noarch.rpm | 136 kB 00:01
——————————————————————————–
Total 76 kB/s | 147 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wbm-virtualmin-nginx-1.8-1.noarch 1/2
virtualmin-nginx
Installing : wbm-virtualmin-nginx-ssl-1.4-1.noarch 2/2
virtualmin-nginx-ssl
Verifying : wbm-virtualmin-nginx-1.8-1.noarch 1/2
Verifying : wbm-virtualmin-nginx-ssl-1.4-1.noarch 2/2

Installed:
wbm-virtualmin-nginx.noarch 0:1.8-1 wbm-virtualmin-nginx-ssl.noarch 0:1.4-1

 

Configure Nginx on Virtualmin

  • Login in virtualmin root panel and go to the below settings.

Webmin è Servers è Nginx WebServer

Check nginx and configuration files should be set .

Have any Question or Comment?

Leave a Reply

Your email address will not be published.

Find a Freelancer