Skip to content

Install Mideye on RHEL 8/9, Rocky & Alma Linux (RPM)

This guide covers installing Mideye Server 6 on RHEL-based distributions including RHEL 8/9, Rocky Linux 8/9, and Alma Linux 8/9.

What you’ll need:

  • Root or sudo access to the server
  • A supported database (MariaDB, MySQL, or SQL Server)
  • Network access to the Downloads page
  • Firewall port assigned by Mideye Support

StepDescriptionTime
1. Install packageDownload and install RPM5 min
2. Set up databaseInstall and configure MariaDB/MySQL10 min
3. Configure connectionEdit application-prod.yml5 min
4. Open firewallAllow HTTPS and RADIUS ports5 min
5. Run setup wizardComplete initial configuration5 min

  1. Update the system packages:

    Terminal window
    sudo dnf update -y
  2. Download the RPM package from the Downloads page. Transfer it to your server:

    Terminal window
    scp MideyeServer6-<version>.el9.noarch.rpm user@server:/tmp/
  3. Install the package:

    Terminal window
    sudo dnf install -y /tmp/MideyeServer6-<version>.el9.noarch.rpm

Mideye Server requires a database. Choose one of the supported options below.

  1. Install MariaDB:

    Terminal window
    sudo dnf install -y mariadb-server
  2. Enable and start the service:

    Terminal window
    sudo systemctl enable --now mariadb
  3. Secure the installation:

    Terminal window
    sudo mysql_secure_installation
  4. Create the database and user:

    Terminal window
    sudo mysql -u root -p
    CREATE DATABASE mideyeserver
    CHARACTER SET utf8mb4
    COLLATE utf8mb4_unicode_ci;
    CREATE USER 'mideye'@'localhost' IDENTIFIED BY 'your_secure_password';
    GRANT ALL PRIVILEGES ON mideyeserver.* TO 'mideye'@'localhost';
    FLUSH PRIVILEGES;
    EXIT;

Edit the Mideye Server configuration file:

Terminal window
sudo vim /opt/mideyeserver6/config/application-prod.yml

Add or update the datasource configuration:

spring:
datasource:
url: jdbc:mariadb://localhost:3306/mideyeserver?sslMode=TRUST
username: mideye
password: your_secure_password

Mideye Server requires two ports:

PortProtocolPurpose
8443TCPWeb administration interface
1812UDPRADIUS authentication

Open the ports in firewalld:

Terminal window
sudo firewall-cmd --permanent --add-port=8443/tcp
sudo firewall-cmd --permanent --add-port=1812/udp
sudo firewall-cmd --reload

Verify the configuration:

Terminal window
sudo firewall-cmd --list-all

Step 5: Start the service and complete setup

Section titled “Step 5: Start the service and complete setup”
  1. Enable and start the Mideye Server service:

    Terminal window
    sudo systemctl enable --now mideyeserver6
  2. Check that the service is running:

    Terminal window
    sudo systemctl status mideyeserver6
  3. Get the setup challenge code from the logs:

    Terminal window
    sudo grep "SETUP CHALLENGE" /opt/mideyeserver6/log/mideyeserver.log
  4. Open the web interface in your browser:

    https://<server-ip>:8443
  5. Complete the Configuration Wizard using the setup challenge code.


After completing the setup wizard, verify that Mideye Server is fully operational:

Terminal window
# Check service status
sudo systemctl status mideyeserver6
# Verify web interface is listening
sudo ss -tlnp | grep 8443
# Verify RADIUS is listening (after wizard completion)
sudo ss -ulnp | grep 1812
# Check logs for errors
sudo tail -50 /opt/mideyeserver6/log/mideyeserver.log

PathDescription
/opt/mideyeserver6/Installation directory
/opt/mideyeserver6/config/application-prod.ymlMain configuration file
/opt/mideyeserver6/config/keystore.p12SSL certificates and encryption keys
/opt/mideyeserver6/log/mideyeserver.logApplication log
/opt/mideyeserver6/log/mideyeserver.errorError log
/etc/systemd/system/mideyeserver6.serviceSystemd service unit


To upgrade an existing installation:

  1. Download the new RPM package from the Downloads page

  2. Install the upgrade:

    Terminal window
    sudo dnf install -y /tmp/MideyeServer6-<new-version>.el9.noarch.rpm
  3. Restart the service:

    Terminal window
    sudo systemctl restart mideyeserver6

To remove Mideye Server:

Terminal window
sudo dnf remove mideyeserver6

Check the logs first:

Terminal window
sudo journalctl -u mideyeserver6 -n 50
sudo tail -100 /opt/mideyeserver6/log/mideyeserver.error

Common issues:

ErrorCauseSolution
Login failed for userInvalid database credentialsVerify username/password in application-prod.yml
BadPaddingExceptionWrong keystore passwordCheck certificate passphrase in configuration
Address already in usePort 8443 is occupiedStop conflicting service or change port

RADIUS only starts after completing the setup wizard. Verify with:

Terminal window
sudo ss -ulnp | grep 1812

If the port isn’t listening, check that the wizard was completed successfully.

  1. Verify the service is running: sudo systemctl status mideyeserver6
  2. Check firewall: sudo firewall-cmd --list-all
  3. Test local access: curl -k https://localhost:8443