DEV Community

Pradeep Kumar
Pradeep Kumar

Posted on • Updated on

Install & Setup VirtualMin on Ubuntu

Steps to install and set up VirtualMin hosting control panel on Ubuntu 22.

Step 1: Install VirtualMin

Ref: https://www.virtualmin.com/download/

wget https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh
Enter fullscreen mode Exit fullscreen mode
sudo sh virtualmin-install.sh
Enter fullscreen mode Exit fullscreen mode

Open:

http://<IP>:10000
Enter fullscreen mode Exit fullscreen mode

Step 2: Install Php Packages:

sudo apt install php8.1-cgi php8.1-cli php8.1-fpm php8.1-pdo php8.1-gd php8.1-zip php8.1-imap php8.1-sqlite3 php8.1-bz2 php8.1-curl php8.1-gmp php8.1-intl php8.1-mysql php8.1-odbc php8.1-soap php8.1-xsl
Enter fullscreen mode Exit fullscreen mode
sudo service apache2 restart
Enter fullscreen mode Exit fullscreen mode

Step 3: Update php.ini

Step 4: Update mysql root password

Login to VirtualMin Dashboard > Webmin > Servers > MySql Database or MariaDB Database Server > User Permissions > Click on root and update the password

Step 5: Install Composer

Ref: https://www.cherryservers.com/blog/how-to-install-composer-ubuntu

sudo apt install curl
Enter fullscreen mode Exit fullscreen mode
curl -sS https://getcomposer.org/installer -o composer-setup.php
Enter fullscreen mode Exit fullscreen mode
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
Enter fullscreen mode Exit fullscreen mode
sudo composer self-update
Enter fullscreen mode Exit fullscreen mode

Step 5: Install Gitlab Runner

Ref: https://dev.to/themodernpk/install-gitlab-runner-on-ubuntu-hcg

Step 6: Install Git FTP

sudo apt install git-ftp
Enter fullscreen mode Exit fullscreen mode

Step 7: Install Node using NVM

Ref - Method 3: https://itsfoss.com/install-nodejs-ubuntu/

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
Enter fullscreen mode Exit fullscreen mode
command -v nvm
Enter fullscreen mode Exit fullscreen mode

Close the terminal/ssh and login again then try

nvm -v
Enter fullscreen mode Exit fullscreen mode

To get list of node versions:

nvm list-remote
Enter fullscreen mode Exit fullscreen mode

To install node:

nvm install v18.18.0
Enter fullscreen mode Exit fullscreen mode
npm i npm -g
Enter fullscreen mode Exit fullscreen mode

Step 8: Create Virtual Server (Domain Hosting)

Login to VirtualMin Dashboard > Create Virtual Server

Step 9: Make new Virtual Server User as Sudo

Login using Main account of ubuntu and run following command:

sudo usermod -aG sudo <Virtual Server User>
Enter fullscreen mode Exit fullscreen mode

Top comments (0)