Introduction
In general terms, this guide describes the steps to set up an iKeyMonitor Server. The exact procedure for each cloud server hosting varies. Where possible, we've included links to further documentation. Please research the provided links for your configuration before beginning a server setup. Please open a support ticket if you have difficulties performing a task in your iKeyMonitor business control panel.
Requirements
- You must have a new cloud server or local server with virtualization support.
Cloud Server: Vultr, Amazon EC2, or other vps/cloud hosting company.
Local Server: A server with docker. - If you want data transfer outside the workspace, the server must have a public IP address and be accessible online.
- If you want data transfer only inside the workspace, the server must have a LAN IP address and be accessible on the LAN network.
- The disk must be 20 GB or larger, depending on the number of your client devices.
Step 1: Deploy a Docker Server
- Sign up for a Cloud Server account or use your local server.
- Add a Linux server with docker. Here, we use Debian OS as an example.
- Access the server with ssh or terminal
Run the command below to update the system.
sudo apt update && sudo apt upgrade -y
After the system is updated, run the command below to install curl. We will use curl to run the script that installs docker.
sudo apt install curl -y
After curl finishes installing, run the command below to install Docker!
NOTE: Please remember that this is a script, and while the process is automated, you should trust the script's origin before you run it. Please review the script before running it. After the script is run, Docker will be installed!
curl -sSL https://get.docker.com/ | sh
Step 2: Download the Docker Compose Package
-
To download the docker-compose package, run the command below.
sudo apt install unzip wget git openssl -y
cd /root
git clone https://github.com/easemon/docker-ikeymonitor-server.git - Configure the server address and MySQL credentials.
cd
docker-ikeymonitor-server
sudo nano .env#Configurable options:
APP_DB_ADMIN_PORT=
APP_NAME=
SOURCE_DIR=/home/panel #Also modify docker-compose.xml and apache conf if you change this.
DB_PORT=
MYSQL_ROOT_PASS=""
MYSQL_USER=
MYSQL_PASS=""
MYSQL_DB=
SERVER_NAME=Your_Domain_or_IP
Step 3: Download the server script source code
You can download the self-hosted server script to your online panel - Download - iKeyMonitor Standalone.
You need a valid business license to download the server file.
Put the file in the SOURCE_DIR configured. The default is /home/panel.
cd /home/panel
sudo wget -O docker-panel-std.zip "https://{source-link-from-the-panel}"
sudo wget -O license.txt "https://{license-link-from-the-panel}"
sudo unzip docker-panel-std.zip
chown -R 99:99 /home/panel
# Ensure that the download link is surrounded by quotes.
Step 4: Update public_html/config.inc.php
Modify config.inc.php with the MYSQL info and SOURCE_DIR you configured before.
sudo nano /home/panel/
public_html/config.inc.php
Step 5: Build and run the docker server
mkdir /root/docker-ikeymonitor-server/docker/server/apache/cert
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /root/docker-ikeymonitor-server/docker/server/apache/cert/mycert.key -out /root/docker-ikeymonitor-server/docker/server/apache/cert/mycert.crt
cddocker-ikeymonitor-server
sudo docker compose up -d
Step 6: Access the panel
Panel: https://yourserver-domain-or-ip
Default username: admin
Default password: 123456
To change the password, access MySQL with phpmyadmin at http://yourserverip:8102 to manage the database and change the password to an md5 value then it will be converted to a salted password.
Comments
0 comments
Please sign in to leave a comment.