Results 1 to 12 of 12
  1. #1
    Join Date
    Sep 2010

    Thumbs up Webmin / Virtualmin - Tutorial. It's easy and free

    Yep. 6 months ago, I started my first time with webmin + virtualmin, and before it, I think only cPanel can do it. But now I know, webmin + virtualmin can do more then cPanel. When you start with this, it's not easy for who is coming from cPanel. The first thing you need to do is... Forget all of that you know about cPanel and learn again.

    When you start, first you need to get this vision: (The names, can do a mistake in your head because you can think "webmin" is your websites control panel, and virtualmin for VPSs. But not... look)

    1-) Webmin = You server manager administrator. Hardware, software packages, server configuration, software configuration. And for sure, here you can do with mouse clicks A LOT of things that you can't do with cPanel.

    2-) Virtualmin = Something like WHM of cPanel. Your accounts, domains, hosting packages, e-mail configurations...

    3-) Usermin = Something like cPanel user domain control panel. Your customers login.

    You can also give your customers access to the Virtualmin. Every thing is configurable.

    AND THE GREAT THING IS -> AUTOMATED INSTALL. A lot of peoples don't know the Virtualmin has an automated installation, that will do an automated install of all softwares that you need.

    Just install a clean minimal system of CentOS, after install, check this commands:

    Pre-install (Check your system)
    yum update -y
    yum install nano wget curl perl -y
    echo SELINUX=disabled > /etc/selinux/config
    If do you wants to disable IPV6
    echo IPV6INIT=no >> /etc/sysconfig/network
    echo NETWORKING_IPV6=no >> /etc/sysconfig/network
    echo net.ipv6.conf.all.disable_ipv6 = 1 >> /etc/sysctl.conf
    echo net.ipv6.conf.default.disable_ipv6 = 1 >> /etc/sysctl.conf
    # Check if IPV6 is disabled on your lan card config
    nano /etc/sysconfig/network-scripts/ifcfg-eth0
    IMPORTANT: Don't forget to configure your /etc/hosts <- The automated install script will get your automated bind configuration based in your hosts file.

    When you open this, you will see something like this:
    Code: localhost.localdomain localhost localhost4.localdomain4 localhost4
    :: 0 0 0 0 0 0 : 000 local.... <- This line is for IPV6
    You should have something like this:
    Code: localhost.localdomain localhost hostname
    And OFC is your real public IP, and is your server hostname like

    If possible, configure your PTR reverse for this IP before install.

    Restart your server with:
    shutdown -r now
    Start automated install of webmin + virtualmin with full webserver software ready to use:
    Reply "y" and wait. This will install everything that you need.

    # Disable Linux iptables Firewall (We will install CSF)
    chkconfig ip6tables off
    service ip6tables stop
    chkconfig iptables off
    service iptables stop
    When finished, just go to your new control panel:
    Your username and password is your root
    Username: root
    Password: your-root-password

    You are ready... your new server is ready to use and host websites. =)


    Post Install (Optional):

    Install CSF linux Firewall:

    rm -fv csf.tgz
    tar -xzf csf.tgz
    cd csf
    On your webmin control panel (look that you have 2 panels "Webmin" and "Virtualmin")

    Webmin > Webmin Configuration > Webmin Modules
    Select Install from From local file "..."
    Click "Install Module"
    Well, you are ready to use your CSF in your control panel over:
    Webmin > System > ConfigServer Security & Firewall
    Don't forget to open TCP ports 10000 and 20000 for virtualmin.
    When you install CSF, it get your IP and put in Firewall Allow, then you are ready to access everything that you need, but your customers are not able before you open these 2 ports.

    If you need to install php 5.4:(It comes by default with php 5.3)
    wget -O /etc/yum.repos.d/software_collections_php54.repo
    # Install base php 5.4:
    yum install php54 php54-php-cli php54-php-mysql php54-php-gd
    # Install php 5.4 with most common used extensions:
    yum install php54 php54-php-cli php54-php-mysql php54-php-gd php54-php-xml php54-php-gd php54-php-imap php54-php-mysql php54-php-odbc php54-php-pear php54-php-pgsql php54-php-snmp php54-php-xmlrpc php54-php-mbstring php5 php54-php-domxml php54-php-gd php54-php-imap php54-php-mysql php54-php-mbstring php54-php-pgsql php54-php-session php54-php-pear php54-php-mssql php54-php-mbstring php54-php-xmlrpc php54-php-mcrypt php54-php-gd php54-php-dom php54-php-pgsql php54-php-session
    Go to your Virtualmin, and clicking System Settings -> Re-Check Config

    Well, now you are ready to use PHP version based in website folder. You can use like this for eg:
    /public_html <- php 5.4
    /public_html/myfolder <- php 5.3

    Are you ready?

    Thanks for read and sorry about the bad english =)
    Last edited by HostFill; 11-18-2013 at 03:17 AM. Reason: Change Title

  2. #2
    Join Date
    Sep 2010

    * Easy Virtualmin Ioncube install

    Let's complement this...
    We always use billing modules or other programs that we need to use the ioncube loaders. To install ioncube loaders on your php 5.4 (instructions to install php 5.4 above).

    I did some copy and paste commands for you. Easy ioncube install.

    echo "zend_extension = /opt/rh/php54/root/usr/lib64/php/modules/" >> /etc/php.ini
    echo "zend_extension = /opt/rh/php54/root/usr/lib64/php/modules/" >> /opt/rh/php54/root/etc/php.d/20-ioncube.ini
    cd /opt/rh/php54/root/usr/lib64/php/modules/
    tar -xvf ioncube_loaders_lin_x86-64.tar.gz
    cd ioncube
    mv *.* ..
    # Clean UP your installation files
    cd ..
    rm -rf ion*.tar.gz
    rm -rf LICENSE.txt
    rm -rf loader-wizard.php
    rm -rf README.txt
    rm -rf ioncube
    service httpd restart
    Now you are ready to use php scripts with ioncube coded =)

  3. #3
    Join Date
    Sep 2010
    I have missed to say for what CentOS version this tutorial is based.

    It's CentOS 6.4 -> 64 Bit (x86_64) minimal install

  4. #4
    Join Date
    Jun 2011
    It's very useful! Thanks for sharing
    Do you know how to perform full backup ( emails, files, database ) for individual account?

  5. #5
    Join Date
    Sep 2010

    You are able to do it on the control panel. It's almost the last option if you are loged in as root on the Virtualmin control panel.
    Also has an option to give permissions for a virtual server owner do it. I don't remember where, but on virtualmin you have options to give any control that you want to the virtual servers owners.

    Scheduled Backups (I'm using this, and works very well).
    Backup Virtual Servers

    Remember. A Virtual Server for webmin, is an account for cPanel.

    That's the biggest confusion for who is coming from cpanel.

    Last edited by HostFill; 11-20-2013 at 03:24 AM.

  6. #6
    I currently have webmin installed and am using my disk space for storage and backups. Can I install virtualmin without destroying anything already working?

  7. #7

    Security Concerns when installing Webmin

    I am planning on installing Webmin. Do we need to take any additional security precautions when installing Webmin? Do we need to change some settings, like changing the default port? I used Webmin several years back and remember changing the default port, but not sure what other settings I had to change to secure it.

  8. #8
    Join Date
    Sep 2010
    I'm using with default port because I have fixed IP (access closed only for my IP) and the server is only for 1 website. Anyway a server without firewall is not good. Csf will do the security for you like fail to ban or cphulk. =)

  9. #9
    Join Date
    Mar 2003
    Moved > Hosting Software and Control Panels Tutorials.
    Specially 4 You
    JoneSolutions.Com ( Jones.Solutions ) is on the net 24/7 providing stable and reliable web hosting solutions and services since 2001

  10. #10
    Join Date
    Jun 2011
    Thanks HostFill!
    It took me sometime to configure the backup, just not sure how to verify the backup file.

  11. #11
    Join Date
    May 2008
    Cusco Perú
    More information about Webmin:

    How To Add A Domain Name In Webmin


    All documentation Virtualmin.

  12. #12
    Join Date
    Oct 2010
    Does it come as one package to install them all or does it need to be done one by one.

    The only downside to it is the look for me, it may be able do a lot but it looks dated with a lot of text, with someone like me who has been using cpanel its confusing.
    Last edited by king-x; 01-11-2014 at 01:22 PM.

Similar Threads

  1. True RAM of VPS webmin - Virtualmin webmin
    By khucthuydu in forum Hosting Security and Technology
    Replies: 4
    Last Post: 04-11-2010, 10:10 PM
  2. Webmin / Virtualmin
    By nostra999 in forum Dedicated Server
    Replies: 0
    Last Post: 04-03-2007, 03:48 AM
  3. Webmin/Virtualmin Help...
    By Shin Asuka in forum Hosting Security and Technology
    Replies: 3
    Last Post: 09-11-2004, 10:57 PM
  4. help with webmin/Virtualmin
    By kks787 in forum Hosting Software and Control Panels
    Replies: 0
    Last Post: 09-08-2004, 04:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts