Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to install & setup webmin for running website ?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to install & setup webmin for running website ?

kitdos_comkitdos_com Member
edited September 2014 in Tutorials

Hello there,

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

Requirement:

+ A VPS with full root.
+ Centos or Debian OS.
+ Should have at least 521MB. Believe me, less than 512MB is NOT recommend !

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

+ No directadmin or Cpanel license fees.(saved $15 for cpanel and $8 for directadmin)
+ You configure yourself.
+ Minimal system configuration. We only install what we needs. Most lowendbox offer min resource, So we have to save resource for running websites.

Ok, let start...

In this guide lines, I will work on Centos only.

First, login as root to your VPS,

1. Update your system...

yum update -y

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: http://www.webmin.com/download.html
Download webmin RPM:

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.700-1.noarch.rpm

Install RPM:

rpm -U webmin-1.700-1.noarch.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:

iptables -F

Ok,

Now open firefox then type:

https://yourIP:10000

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:

yum install php php-*

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(namecheap.com or name.com 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/domain.com/www

So please create directory: /home/domain.com/www

Run this command:

mkdir /home/domain.com
mkdir /home/domain.com/www

Ok, now we have /home/domain.com/www

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/domain.com/www

Server Name: domain.com

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/domain.com/www

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 domain.com in your VPS.

You just need to upload your documents/script to domain.com 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,

https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider
You will have to create 2 A records.

domain.com. 73 IN A Your-VPS-IP

domain.com. 73 IN A Your-VPS-IP

Excample:
kitdos.com. 73 IN A 123.123.123.123

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: http://domain.com
Then you will see your website here.

Thank you for reading,

If you need any more help, dont hesitate to contact me at:

skype: kitdos.com

Comments

  • sz1, is that you?

  • @wych said:
    sz1, is that you?

    here's a guide to find out if it is

    go on google

    if you need any help just look on google

    thanks

  • @hostnoob said:
    go on google

    >

    if you need any help just look on google

    Honestly, I think thats what someone would do to find out how to do what the article explains.

    sz1 posted similar articles before he was banned, thus why I asked.

    Whatever.

  • Oh no no...
    lol, I dont know sz1 is who ???
    But this is my knowledge and I want to share this ?
    Is there any bad things here ???

  • @kitdos_com no SSL on your site buddy?

  • @wych said:
    Whatever.

    yeah, his "tutorials" were pretty much just "look on google"

    this one actually has steps to follow

  • @wych is this important ? It is not banking or payment system here.
    I can easyly setup SSL,

  • wychwych Member
    edited September 2014

    @hostnoob said:
    this one actually has steps to follow

    Now I get you... yeah this one isn't duplicate content either and skips the BS about LET ;)

    @kitdos_com said:
    wych is this important ? It is not banking or payment system here.
    I can easyly setup SSL,

    Well its your own payment system... So I will leave it upto you.

  • kitdos_comkitdos_com Member
    edited September 2014

    @hostnoob said:
    this one actually has steps to follow

    Poor editor make my article harder to read,
    Is there any one here can make better editor for this forum ???

  • wychwych Member
    edited September 2014

    @kitdos_com said:
    Is there any one here can make better editor for this forum ???

    Its not that bad, either write it as HTML or use markdown.

  • @kitdos_com said:

    You really should update your formatting... The OP looks a crap.


    **Sample Text** for bold

    --- for a horizontal rule (line)


    Example
    -

    for headers

    <pre>
    Code
    </pre>
    

    for code

  • AlexanderMAlexanderM Member, Top Host, Host Rep

    @kitdos_com Use HTML :)

  • Ok, Thank every one,
    Everything seem fine now,

  • BlanozBlanoz Member
    edited September 2014

    There are some known nasty bugs in 1.700. Update to beta (1.701) for fast fixing.

  • jbarrjbarr Member
    edited September 2014

    For me, the best information is in the part...

    1. Create virtual hosts.

    ...because I haven't found much on how to actually define the Web site within Webmin (OK, I haven't really looked hard, but I never was able to successfully figure it out.) I can get Webmin installed and running with little effort, but defining the Web sites has eluded me.

    Question: Hoe do you manage multiple sites with sub-domains?

    For example, say I want to have several distinct Web sites on several domains:

    main site: testsite.com

    test site: sandbox.testsite.com

    dev site: dev.testsite.com

    etc.

    Is this done the same way as defining the root site, just creating new directories and pointing to those?

    Or would I use Virtialmin?

  • @jbarr said:
    For me, the best information is in the part...
    Or would I use Virtialmin?

    NO. I dont think you will need virtualmin !

    In order to create subdomain, such as sub.domain.com

    It is simple, you create directory: /home/domain.com/www/sub -> this is home directory of subdomain

    Then create virtual host:

    Important: Sevrer Name: sub.domain.com

    Then it will works properly with your subdomain,

  • And remember create CNAME records( for subdomain ) on DNS settings and restart apache service :)

  • SadySady Member
    edited September 2014

    Thank you for the tutorial, working like a charm.

    Is there anyway to host subdomain on a seperate dedicated IP ? I am doing DNS things through Cloudflare.

    Want to enjoy my 7 IPv4 on XVMLabs VPS :D

Sign In or Register to comment.