How to Install Webmin on CentOS or Debian VPS

0
57

Webmin is a free web hosting control panel compatible with most Linux distributions.

To install on CentOS or any other RHEL-derived system, follow the first half of the guide; to install on Debian or Ubuntu, skip to the latter half.

CentOS/RHEL Installation with Yum

1. Create and edit the /etc/yum.repos.d/webmin.repo file:

Code:
vi /etc/yum.repos.d/webmin.repo

2. With the file open in vi, press “A” to enter editing mode, and add:

Code:
    [Webmin]

    name=Webmin Distribution Neutral

    baseurl=http://download.webmin.com/download/yum

    mirrorlist=http://download.webmin.com/download/yum/mirrorlist

    enabled=1

3. Save and exit the file by pressing ESC, typing :wq (colon-w-q), and pressing enter.

4. Fetch and install the proper GPG Key:

Code:
    wget http://www.webmin.com/jcameron-key.asc

    rpm --import jcameron-key.asc

5. Install Webmin with yum using the newly added repository:

Code:
     yum install webmin

Debian/Ubuntu Installation with APT

1. Edit the APT sources list:

Code:
 vi /etc/apt/sources.list

2. With the file open in vi, press “A” to enter editing mode, and add these lines to the file:

Code:
  deb http://download.webmin.com/download/repository sarge contrib

    deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

3. Save and exit the file by pressing ESC, typing :wq (colon-w-q), and pressing enter.

4. Fetch and install the proper GPG Key:

Code:
 cd /root
Code:
  wget http://www.webmin.com/jcameron-key.asc
Code:
    apt-key add jcameron-key.asc

5. Install Webmin:

Code:
apt-get update
Code:
apt-get install webmin
For more information, visit: Webmin

LEAVE A REPLY

Please enter your comment!
Please enter your name here