How To Install phpMyAdmin on Manjaro

Install phpMyAdmin on Manjaro

In this tutorial, we will show you how to install phpMyAdmin on Manjaro. phpMyAdmin is a free software tool written in PHP, designed to handle the administration of MySQL and MariaDB databases through a web interface. It is widely used for managing databases, executing queries, and performing various administrative tasks.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the phpMyAdmin on a Manjaro Linux.

Prerequisites

  • A server or desktop running one of the following operating systems: Manjaro, and other Arch-based distributions.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A stable internet connection is crucial for downloading and installing packages. Verify your connection before proceeding.
  • Access to a Manjaro Linux system with a non-root sudo user or root user.

Install phpMyAdmin on Manjaro

Step 1. Before installing phpMyAdmin, it is crucial to update your system to ensure all packages are current. This can prevent compatibility issues and ensure security patches are applied. Use the following command to update Manjaro Linux:

sudo pacman -Syu

This command synchronizes your package database with the servers and upgrades all out-of-date packages, ensuring your system is primed for the installation process.

Step 2. Installing LAMP Server.

A LAMP (Linux, Apache, MySQL/MariaDB, PHP) server is a collection of open-source software that provides a platform for running dynamic websites and web applications. To install Apache, MySQL, and PHP on Manjaro Linux, follow these steps guides.

Step 3. Installing phpMyAdmin on Manjaro.

To install phpMyAdmin on Manjaro Linux, execute the following commands:

sudo pacman -S phpmyadmin

After installation, you need to include the phpMyAdmin configuration in the Apache configuration file. Add the following line to /etc/httpd/conf/httpd.conf:

Include conf/extra/phpmyadmin.conf

Save and close the file. Then, restart the Apache service for the changes to take effect:

sudo systemctl restart httpd

Step 4. Securing phpMyAdmin.

Securing your phpMyAdmin installation is crucial to prevent unauthorized access. Use the following command to set a root password for MariaDB:

sudo mysql_secure_installation

This script helps you secure your MariaDB installation by setting a root password, removing anonymous users, disallowing remote root login, and removing the test database.

Step 5. Using phpMyAdmin on Manjaro.

You can now access phpMyAdmin by opening a web browser and navigating to http://localhost/phpmyadmin. Use the username ‘root’ and the password you set earlier to log in.

Install phpMyAdmin on Manjaro

Congratulations! You have successfully installed phpMyAdmin. Thanks for using this tutorial to install the latest version of phpMyAdmin on the Manjaro system. For additional help or useful information, we recommend you check the official phpMyAdmin website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!
r00t is a Server System Administrator with more than 7 years of experience in server administration, operating systems, and programming. They have a strong track record of managing, securing, and optimizing Linux-based infrastructure (Ubuntu, Debian, CentOS/AlmaLinux) as well as Windows Server, across on-premises, VPS, and cloud environments. Their expertise covers configuring and maintaining web servers (Nginx, Apache) and databases (MySQL/MariaDB, PostgreSQL). It also includes virtualization and containers (Proxmox, Docker), networking, firewalls, and security hardening. They are experienced in monitoring, backup and disaster recovery, and troubleshooting to keep services available and performing well. Skilled in Bash, Python, and PHP, they automate routine tasks, build maintenance scripts, and manage deployments, which makes operations more efficient and less error-prone. They are known for being meticulous, responsive during incidents, and willing to share knowledge with teams and the wider community. Outside of work, r00t enjoys experimenting with homelabs, open source software, and emerging infrastructure technologies.

Related Posts