0% found this document useful (0 votes)
93 views

How To Install Webmin Virtualmin

The document provides instructions for installing Virtualmin on CentOS 7 to manage multiple virtual hosts through a single interface. It describes downloading and running the Virtualmin installer script. Once installed, the post-installation wizard guides the configuration of additional settings. The document also outlines how to create a new virtual server in Virtualmin to host a new domain, and how to install WordPress on a server managed by Virtualmin which involves creating a database and installing WordPress.

Uploaded by

Kévin SunShine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views

How To Install Webmin Virtualmin

The document provides instructions for installing Virtualmin on CentOS 7 to manage multiple virtual hosts through a single interface. It describes downloading and running the Virtualmin installer script. Once installed, the post-installation wizard guides the configuration of additional settings. The document also outlines how to create a new virtual server in Virtualmin to host a new domain, and how to install WordPress on a server managed by Virtualmin which involves creating a database and installing WordPress.

Uploaded by

Kévin SunShine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

Advanced Network/System Administration and Security Workshop

ECE Building, Building, BUET, Dhaka


Date: 10-12 December 2019

How to Install Webmin/Virtualmin in Linux (CentOS 7)

What Is Virtualmin?
Virtualmin is a Webmin module that is typically used to manage multiple virtual hosts
through a single interface, similar to cPanel. It supports multiple functions such as
creating/managing Apache virtual hosts, MySQL database creation/management,
generating DNS zones, managing mailboxes, and much more.

How Do I Install Virtualmin On CentOS 7?


This guide implies that you’re using the root account on Cloud, VPS or Dedicated
Server to perform the installation and that you have a basic working knowledge of a
Linux shell.

We highly suggest taking a backup of your server prior to proceeding with this script.

Although this document is written for CentOS 7, Virtualmin offers an automated


installation script for the following distros:

• CentOS/RHEL/Scientific Linux 7 on x86_64


• CentOS/RHEL/Scientific Linux 5 and 6 on i386 or x86_64
• Debian 6, 7, and 8 on i386 or amd64
• Ubuntu 12.04 LTS, 14.04 LTS, and 16.04 LTS on i386 or amd64 (non-LTS
releases are not supported)

The following steps can be utilized to install Virtualmin in a CentOS 7 (RHEL 7)


environment on a fresh OS installation.

1. Ensure your server is up to date

sudo yum update -y


2. Download the Virtualmin installer script using wget

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


3. Execute the install script

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

sudo sh install.sh

As per the warning when the script is executed ensure that your OS is listed and type
“y” then press “Enter” to continue with the installation

If prompted you may need to enter in a fully qualified hostname. Please note
that this domain name will need to resolve to your server.

Finish Setting Up Virtualmin With the Post-Installation Wizard


The installation should now be underway and may take a bit of time to complete. Once
the installation is complete you can move on to the Post-Installation Wizard by logging
into Virtualmin using YOURIPADDRESS:10000 as Virtualmin operates on port

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

10000 by default. You can choose to perform the post installation steps later; however,
it is strongly advised to proceed with them now using the following steps.

2. Select the appropriate setting for your system


3. Click “Next”

4. Select if you’d like to run clamd in the background


5. Click “Next”

6. Select if you’d like to run spamd in the background


7. Click “Next”

8. Select if you’d like to run a MySQL server, PostgreSQL server or both


9. Click “Next”

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

10. Set a root password for the database server (MySQL/PostgreSQL)


11. Select if you’d like to remove the test MySQL database
12. Select if you’d like to remove the anonymous MySQL user
13. Click “Next”

14. Select the appropriate configuration for your system


15. Click “Next”

16. Set the Primary nameserver


17. Set the Secondary nameservers if needed
18. Click “Next”

19. Select to store plain-text or hashed password


20. Click “Next”

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

The Post-Installation Wizard should now be complete and you should be able to start
using your new control panel. The first thing you should do is create a new virtual
server so that you can begin hosting your site(s).

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

Creating A New Virtual Server In Webmin/Virtualmin

To setup a new virtual server in Webmin/Virtualmin you’ll make the similar steps to
adding a new cPanel account to host a new website in WHM. You can create new
virtual servers in Webmin to host new domains.

How Do I Add A New Site to Virtualmin?


To add a new site/domain (Virtual Server) to Webmin please use the following steps.

1. Login to Webmin
2. Select Virtualmin
3. Select the Create Virtual Server option

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

4. Fill in the required information for the domain

a. New virtual server type


i. Top-level server
ii. Sub-server
iii. Alias
b. Domain name
c. Description
d. Administration password
e. Server configuration template
f. Account plan
g. Administration username

5. Click Create Server

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

Hosting A WordPress Site on A Server with Virtualmin


Virtualmin makes it very easy to manage all aspects of your website via its very
intuitive GUI. In this article we will cover how to create a WordPress site within
Virtualmin. If you have not already installed Virtualmin

How Can Host WordPress Website on a Server with


Virtualmin/Webmin?

This process can essentially be broken into 3 tasks, which are extensively covered in
the guides below.

• Creating a new virtual server in Webmin/Virtualmin


• Creating A New Database in Virtualmin
• Installing WordPress in Virtualmin

Overall you need to first add the site that you’d like to install WordPress on, and host
to Virtualmin/Webmin. You’ll then need to create a new database for the WordPress
site to use. Lastly, you’ll need to install the WordPress software onto a domain that
you have added to Virtualmin/Webmin and also use the database that you created.

Create A New Database In Virtualmin


Similar to other control panels, such as cPanel or Plesk, Virtualmin provides a user
friendly interface to create and manage MySQL databases. To create a new database
within Virtualmin please refer to the following steps.

1. Login to Virtualmin
2. Select the domain for which you’d like to create the database from the
dropdown box
3. Click Edit Databases

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

4. Select Create a new database

5. Enter in the name for your database


6. Under Database server type select the type of database this will be, if you’re
not sure then use MySQL
7. Click Create

Note: This method of creating a database in Virtualmin will automatically add the
Virtualmin user that was used to create the database to that database with all
permissions.

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

Installing WordPress In Virtualmin:

WordPress is one of the leading Content Management Systems (CMS) available today
and is used on a variety of different websites. Like Virtualmin, WordPress is free and
open source so it only makes sense that you should be able to use the two together
to manage your website. In this article we will cover exactly how you can install
WordPress onto a site

Before you begin please go and download the most recent version of WordPress onto
your computer by visiting wordpress.org. This will ensure that you’re using the latest
version with the most up to date security patches applied. Once the download is
complete, please refer to the following steps.

1. Login to Virtualmin
2. Select Webmin
3. Click Others
4. Select File Manager

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

5. Navigate to where you’d like to install WordPress


6. Click the File drop down menu
7. Select Upload to current directory

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

8. Click the Paperclip icon and select the new version of WordPress that was
downloaded earlier
9. Click Upload Files

10. Right click the WordPress zip folder that was just uploaded
11. Select Extract

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

12. Open up the extracted WordPress folder by clicking on it

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

13. Click the Select All icon


14. Click the Edit drop down button
15. Select the Cut option
16. Click the icon to go back up one directory

17. Select the Edit drop down button


18. Click Paste

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

19. Right click the file wp-config-sample.php


20. Select the Rename option

21. Rename the file to wp-config.php without the quotes


22. Click the Rename Button

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

23. Right click the file wp-config-sample.php


24. Select the Edit option

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

25. Locate the MySQL settings section in the wp-config/php file


26. Enter in the following database information
a. ‘DB_NAME’
b. ‘DB_USER’
c. ‘DB_PASSWORD’
d. ‘DB_HOST’
27. Click the Save Button

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

28. In a web browser navigate to the domain that you just installed WordPress on
to complete the installation
a. The URL should be something like YOURDOMAIN.TLD/wp-
admin/install.php
29. Select the language that you’d like to use
30. Click Continue

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

31. Fill in the following information


a. Site Title
b. Username
c. Password
d. Your Email
e. Search Engine Visibility
32. Click the Install WordPress button at the bottom of the page

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]
Advanced Network/System Administration and Security Workshop
ECE Building, Building, BUET, Dhaka
Date: 10-12 December 2019

If everything went smoothly, WordPress should now be installed and you should now
be logged into your WordPress Dashboard.

Md. Ariful Islam


Manager (Data & Transmission Network), BdREN
E-mail: [email protected]

You might also like