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.
Before you begin
Section titled “Before you begin”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
Installation overview
Section titled “Installation overview”| Step | Description | Time |
|---|---|---|
| 1. Install package | Download and install RPM | 5 min |
| 2. Set up database | Install and configure MariaDB/MySQL | 10 min |
| 3. Configure connection | Edit application-prod.yml | 5 min |
| 4. Open firewall | Allow HTTPS and RADIUS ports | 5 min |
| 5. Run setup wizard | Complete initial configuration | 5 min |
Step 1: Install the package
Section titled “Step 1: Install the package”-
Update the system packages:
Terminal window sudo dnf update -y -
Download the RPM package from the Downloads page. Transfer it to your server:
Terminal window scp MideyeServer6-<version>.el9.noarch.rpm user@server:/tmp/ -
Install the package:
Terminal window sudo dnf install -y /tmp/MideyeServer6-<version>.el9.noarch.rpm
Step 2: Set up the database
Section titled “Step 2: Set up the database”Mideye Server requires a database. Choose one of the supported options below.
-
Install MariaDB:
Terminal window sudo dnf install -y mariadb-server -
Enable and start the service:
Terminal window sudo systemctl enable --now mariadb -
Secure the installation:
Terminal window sudo mysql_secure_installation -
Create the database and user:
Terminal window sudo mysql -u root -pCREATE DATABASE mideyeserverCHARACTER SET utf8mb4COLLATE utf8mb4_unicode_ci;CREATE USER 'mideye'@'localhost' IDENTIFIED BY 'your_secure_password';GRANT ALL PRIVILEGES ON mideyeserver.* TO 'mideye'@'localhost';FLUSH PRIVILEGES;EXIT;
-
Install the MySQL repository and server:
Terminal window sudo dnf install -y https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpmsudo dnf install -y mysql-community-server -
Enable and start the service:
Terminal window sudo systemctl enable --now mysqld -
Get the temporary root password and secure the installation:
Terminal window sudo grep 'temporary password' /var/log/mysqld.logsudo mysql_secure_installation -
Create the database and user:
Terminal window mysql -u root -pCREATE DATABASE mideyeserverCHARACTER SET utf8mb4COLLATE utf8mb4_0900_ai_ci;CREATE USER 'mideye'@'localhost' IDENTIFIED BY 'Your_Secure_Password1!';GRANT ALL PRIVILEGES ON mideyeserver.* TO 'mideye'@'localhost';FLUSH PRIVILEGES;EXIT;
For Microsoft SQL Server, see the Windows installation guide or connect to an existing SQL Server instance.
Configure the connection in application-prod.yml:
spring: datasource: url: jdbc:sqlserver://sql-server-host:1433;database=mideyeserver;encrypt=true;trustServerCertificate=true username: mideye password: your_secure_passwordStep 3: Configure the database connection
Section titled “Step 3: Configure the database connection”Edit the Mideye Server configuration file:
sudo vim /opt/mideyeserver6/config/application-prod.ymlAdd or update the datasource configuration:
spring: datasource: url: jdbc:mariadb://localhost:3306/mideyeserver?sslMode=TRUST username: mideye password: your_secure_passwordspring: datasource: url: jdbc:mysql://localhost:3306/mideyeserver?sslMode=TRUST username: mideye password: Your_Secure_Password1!Step 4: Configure the firewall
Section titled “Step 4: Configure the firewall”Mideye Server requires two ports:
| Port | Protocol | Purpose |
|---|---|---|
| 8443 | TCP | Web administration interface |
| 1812 | UDP | RADIUS authentication |
Open the ports in firewalld:
sudo firewall-cmd --permanent --add-port=8443/tcpsudo firewall-cmd --permanent --add-port=1812/udpsudo firewall-cmd --reloadVerify the configuration:
sudo firewall-cmd --list-allStep 5: Start the service and complete setup
Section titled “Step 5: Start the service and complete setup”-
Enable and start the Mideye Server service:
Terminal window sudo systemctl enable --now mideyeserver6 -
Check that the service is running:
Terminal window sudo systemctl status mideyeserver6 -
Get the setup challenge code from the logs:
Terminal window sudo grep "SETUP CHALLENGE" /opt/mideyeserver6/log/mideyeserver.log -
Open the web interface in your browser:
https://<server-ip>:8443 -
Complete the Configuration Wizard using the setup challenge code.
Verify the installation
Section titled “Verify the installation”After completing the setup wizard, verify that Mideye Server is fully operational:
# Check service statussudo systemctl status mideyeserver6
# Verify web interface is listeningsudo ss -tlnp | grep 8443
# Verify RADIUS is listening (after wizard completion)sudo ss -ulnp | grep 1812
# Check logs for errorssudo tail -50 /opt/mideyeserver6/log/mideyeserver.logFile locations
Section titled “File locations”| Path | Description |
|---|---|
/opt/mideyeserver6/ | Installation directory |
/opt/mideyeserver6/config/application-prod.yml | Main configuration file |
/opt/mideyeserver6/config/keystore.p12 | SSL certificates and encryption keys |
/opt/mideyeserver6/log/mideyeserver.log | Application log |
/opt/mideyeserver6/log/mideyeserver.error | Error log |
/etc/systemd/system/mideyeserver6.service | Systemd service unit |
Next steps
Section titled “Next steps”Upgrade
Section titled “Upgrade”To upgrade an existing installation:
-
Download the new RPM package from the Downloads page
-
Install the upgrade:
Terminal window sudo dnf install -y /tmp/MideyeServer6-<new-version>.el9.noarch.rpm -
Restart the service:
Terminal window sudo systemctl restart mideyeserver6
Uninstall
Section titled “Uninstall”To remove Mideye Server:
sudo dnf remove mideyeserver6Troubleshooting
Section titled “Troubleshooting”Service won’t start
Section titled “Service won’t start”Check the logs first:
sudo journalctl -u mideyeserver6 -n 50sudo tail -100 /opt/mideyeserver6/log/mideyeserver.errorCommon issues:
| Error | Cause | Solution |
|---|---|---|
Login failed for user | Invalid database credentials | Verify username/password in application-prod.yml |
BadPaddingException | Wrong keystore password | Check certificate passphrase in configuration |
Address already in use | Port 8443 is occupied | Stop conflicting service or change port |
RADIUS not responding
Section titled “RADIUS not responding”RADIUS only starts after completing the setup wizard. Verify with:
sudo ss -ulnp | grep 1812If the port isn’t listening, check that the wizard was completed successfully.
Can’t access web interface
Section titled “Can’t access web interface”- Verify the service is running:
sudo systemctl status mideyeserver6 - Check firewall:
sudo firewall-cmd --list-all - Test local access:
curl -k https://localhost:8443