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
sudo sh virtualmin-install.sh
Open:
http://<IP>:10000
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
sudo service apache2 restart
Step 3: Update php.ini
- Login to VirtualMin Dashboard > Webmin > Tools > PHP Configuration > Edit Manually
- Copy and paste the https://gist.github.com/themodernpk/8c5e21ec81eb3e4fb6bfb57c9365a28f
- Click on
Save and close
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
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
sudo composer self-update
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
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
command -v nvm
Close the terminal/ssh and login again then try
nvm -v
To get list of node versions:
nvm list-remote
To install node:
nvm install v18.18.0
npm i npm -g
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>
Top comments (0)