Skip to content

Guide on Installing Adminer Version 5.3.0 in Rocky Linux 9

DIY Guideline for Installing Adminer 5.3.0 on Rocky Linux 9: A quick and efficient method for streamlined database management. Dive into this simple installation guide.

Installing Adminer 5.3.0 on Rocky Linux 9: A Step-by-Step Guide
Installing Adminer 5.3.0 on Rocky Linux 9: A Step-by-Step Guide

Guide on Installing Adminer Version 5.3.0 in Rocky Linux 9

In this article, we will guide you through the process of installing Adminer 5.3.0 on Rocky Linux 9 using Apache and PHP. Adminer is a fast, lightweight, and open-source web-based database management tool that offers full support for CRUD operations and table structure management, import/export tools, SQL editor with syntax highlighting, user and privilege management, and a plugin system for extending functionality.

**Step 1: Update your system**

Begin by updating your system:

```bash sudo dnf update -y ```

**Step 2: Install Apache and PHP**

Rocky Linux 9 typically comes with PHP 8.x. Adminer 5.3.0 supports PHP 5.2 and newer, so PHP 8.x will work fine. Install Apache and PHP along with the necessary PHP modules:

```bash sudo dnf install httpd php php-mbstring -y ```

**Step 3: Start and enable Apache web server**

Start the Apache web server and ensure it starts automatically on boot:

```bash sudo systemctl start httpd sudo systemctl enable httpd ```

Verify Apache is running:

```bash sudo systemctl status httpd ```

**Step 4: Download Adminer 5.3.0**

Navigate to the web root, typically `/var/www/html`:

```bash cd /var/www/html ```

Download Adminer 5.3.0 single PHP file:

```bash sudo curl -O https://github.com/vrana/adminer/releases/download/v5.3.0/adminer-5.3.0.php ```

For convenience, rename the file to `adminer.php`:

```bash sudo mv adminer-5.3.0.php adminer.php ```

**Step 5: Set proper permissions**

Ensure Apache can read the file:

```bash sudo chown apache:apache adminer.php sudo chmod 644 adminer.php ```

**Step 6: Adjust Firewall (if necessary)**

If firewall is running, allow HTTP traffic:

```bash sudo firewall-cmd --zone=public --add-service=http --permanent sudo firewall-cmd --reload ```

**Step 7: Test Adminer**

Open your browser and go to:

``` http://your-server-ip/adminer.php ```

You should see the Adminer login page.

**Optional: Secure Adminer by Apache configuration**

For security reasons, you may want to restrict access to Adminer by IP or set up HTTP authentication. Example: Allow only localhost access:

1. Create a file `/etc/httpd/conf.d/adminer.conf`:

```apache ```

2. Reload Apache:

```bash sudo systemctl reload httpd ```

**Summary**

```bash sudo dnf update -y sudo dnf install httpd php php-mbstring -y sudo systemctl start httpd sudo systemctl enable httpd

cd /var/www/html sudo curl -O https://github.com/vrana/adminer/releases/download/v5.3.0/adminer-5.3.0.php sudo mv adminer-5.3.0.php adminer.php sudo chown apache:apache adminer.php sudo chmod 644 adminer.php

sudo firewall-cmd --zone=public --add-service=http --permanent sudo firewall-cmd --reload ```

Open `http://your-server-ip/adminer.php` and you're done.

Adminer on Rocky Linux 9 is compatible with Apache, Nginx, PHP, and MariaDB. It offers enhanced system security through SELinux. Adminer is often preferred over phpMyAdmin in minimalist or hardened server setups due to its simplicity, faster performance, broader database support, smaller attack surface, and easier maintenance and upgrades. If you need assistance with securing Adminer or installing additional PHP extensions, feel free to ask!

Here are two sentences that contain the words 'finance', 'lifestyle', and 'technology' and follow from the given text:

By optimizing server configurations using Adminer, you could potentially reduce the costs associated with finance and improve the performance of sites that focus on technology and lifestyle. This can lead to a more efficient and cost-effective approach in maintaining servers and databases, ensuring a smoother user experience for your visitors.

Read also:

    Latest