How to install & setup webmin for running website ?

Posted by admin in Tutorials on February 11, 2016 with No Comments

Hello there,

Today, I will write some guide lines about how to install and use webmin to run some websites in your VPS.


****What is benefits ?****

Ok, let start…
In this guide lines, I will work on Centos only.
First, login as root to your VPS,
1. Update your system…

Wait some times while system being updated.
2. Then now, we will install the latest version of webmin:
You can get more download links by going here: Download webmin RPM:

Install RPM:

Ok, after that, we have webmin run on 10000 port by defaults.
In some system, Iptables may block connection to 10000
Then you can flush iptables by running this:

Now open firefox then type:
Login: root

Password: your root password

Ok, Now you will see your VPS configuration, such as RAM, CPU, Disk,…
By default, Centos does not have anythings, you will have to install yourself,
You will need apache, mysql server to run a website in php/mysq.

First of all, we have to install apache web server.
In default webmin panel page,
Chose Un-used Modules
Chose Apache Web Service
=> Webmin will tell you that apache was not installed, click here to install
=> Click to install apache web server.

Waiting some minutes for it to completed.

Then, we will install mysql server.
In default webmin panel page,
Chose Un-used Modules
Chose Mysql Database Server
=> Webmin will tell you that mysql server was not installed,
=> Click to install mysql server.

Waiting for some minutes,

Install PHP:
Run this command:

System will install default php to your system.

Ok, Now we have apache & mysql with php.
In fact, we do not need named server such as bind or anythings.
Named server will need a lot of RAM & CPU, we may used free DNS service around the world such as cloudflare, or registrar free DNS( or offer this for you)

We will start working now to run a website in our server.
1. Create Domain Home Directory
I will use: /home/
So please create directory: /home/
Run this command:

Ok, now we have /home/
1. Create virtual hosts.

Webmin Panel Home > Servers > Apache Server
Chose Create Virtual Hosts
-> Use the following configuration:
Handle connections to address: any address
Port: 80
Document Root: /home/
Server Name:
Add virtual server to file: Standard httpd.conf
All others leave default.
-> Click Create Now

Ok, Now apache can handle your domain, running on /home/
You can upload your script/html/php to this directory.

If your script need mysql, follow these steps to create new database and user.
Webmin Panel Home > Servers > Mysql Database Server
Click: Create New Database
-> Input database name with your charset configuration,

To Create User:
Webmin Panel Home > Servers > Mysql Database Server
Chose Users Permissions
-> Add new user
-> Input
Username: chose username(DO not chose anonymous)
Password: chose password
Host: localhost
Permissions: Chose All. Or some such as select, drop, insert,… it depends on you or wha you needs.
Others leave default.
-> Create
Ok, Now you have mysql database with usesname/password run in localhost.
Everything is ready and minimal for running in your VPS.

You just need to upload your documents/script to directory.

The final: Point domain to your VPS, which is running your script/mysql database.
It depends on dns server which you are running.
but you have to create these records for domain running on your VPS.
This is simple knowledge about dns records,

You will have to create 2 A records. 73 IN A Your-VPS-IP 73 IN A Your-VPS-IP

When you completed this, you will have to wait for 6 hours for it to active and effect worldwide. After 6 hours, go to brower such as firefox or chrome, type: Then you will see your website here.
Thank you for reading,
If you need any more help, dont hesitate to contact me at:

Leave a Comment

Your email address will not be published. Required fields are marked *

LoadingRetrieving latest tweet...

Back to Top

2021 © All right reserved.