Step 1: Create a DreamCompute Instance

  1. Login to your DreamHost Panel.

  2. Go to Cloud Services > DreamCompute.

  3. Click Launch Instance.

  4. Choose Image: Select Ubuntu 20.04 LTS or Ubuntu 22.04 LTS.

  5. Flavor: Use a basic flavor like gp1.semismall (1GB RAM, 1 vCPU).

  6. Key Pair: Create or upload your SSH key.

  7. Name the instance

  8. Click Launch Instance.


🧰 Step 2: Allocate and Assign Floating IP

  1. Under Network > Floating IPs, allocate a new one.

  2. Assign it to your new instance.


  3. You can now access the server using:


    ssh ubuntu@<your-floating-ip>

⚙️ Step 3: Update the System

Once inside your server via SSH:


sudo apt update && sudo apt upgrade -y


🐘 Step 4: Install Required Packages (Apache, PHP, Git)



sudo apt install apache2 php php-curl php-cli php-mbstring unzip git -y


📁 Step 5: Download and Setup MikHmon


cd /var/www/html sudo git clone https://github.com/laksa19/mikhmon.git sudo mv mikhmon /var/www/html/mikhmon sudo chown -R www-data:www-data /var/www/html/mikhmon

[You will need to move, change permission, upload files/folder to hosting by WinSCP
you will have to convert .epm to ptt with WinSCP, you can login SSH via PuTTy and WinSCP to console]

🌐 Step 6: Configure Apache

Create a new Apache config file:


sudo nano /etc/apache2/sites-available/mikhmon.conf


Paste this config:


<VirtualHost *:80> ServerName hotspot.example.com DocumentRoot /var/www/html/mikhmon <Directory /var/www/html/mikhmon> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/mikhmon_error.log CustomLog ${APACHE_LOG_DIR}/mikhmon_access.log combined </VirtualHost>

Save and exit.



Now enable the site:

sudo a2ensite mikhmon.conf sudo a2enmod rewrite sudo systemctl reload apache2



🔐 Step 7: (Optional) Secure with Let's Encrypt SSL

Install Certbot:


sudo apt install certbot python3-certbot-apache -y

Run Certbot:


sudo certbot --apache -d hotspot.example.com


📲 Step 8: Access Mikhmon

Go to:

http://hotspot.example.com

or (if SSL is configured):


https://hotspot.example.com

You’ll see the Mikhmon interface. Add your Mikrotik router and begin using it!

Post a Comment