LinuxTutorialsUbuntu

How To Install phpMyAdmin on Windows 10 WSL

Install phpMyAdmin on Windows 10 WSL

In this tutorial, we will show you how to install phpMyAdmin on Windows 10 WSL. For those of you who didn’t know, phpMyAdmin is an open-source PHP application built to manage MySQL and MariaDB database servers such as user accounts and privileges, execute SQL queries and statements, import and export database content, and much more via the intuitive web interface.

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 under Windows. You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint on the Subsystem for Linux 2 (WSL2).

Prerequisites

  • A server running one of the following operating systems: Windows 10.
  • It’s recommended that you use a fresh OS install to prevent any potential issues
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, you can harm your system if you’re not careful when acting as the root.

Install phpMyAdmin on Windows 10 WSL

Step 1. Installing Windows Subsystem Linux.

You can install the windows subsystem for Linux, which provides an environment for a Linux userspace to operate. Now follow instructions to install WSL 2 from here.

Step 2. Installing the LAMP stack on Windows WSL.

A Ubuntu 20.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide.

Step 3. Installing phpMyAdmin on Windows WSL.

Once successfully installed Apache, MariaDB, and PHP (LAMP). Next, run the commands below to install phpMyAdmin:

sudo apt install phpmyadmin

During the installation, you’ll be prompted to select the webserver to run with phpMyAdmin. Select apache2 when prompted and continue installing the process:

Install phpMyAdmin on Windows 10 WSL

Next, select Yes and press ENTER to install and configure the database.

Install phpMyAdmin on Windows 10

You need to provide a password for phpMyAdmin to register with the MySQL database server. If the password is not given, a random password will be generated.

Install phpMyAdmin on Windows 10 WSL

Step 4. Accessing phpMyAdmin.

Now open your browser and surf to http://your-ip-address/phpmyadmin and when the login screen appears then type the root user for Database created above along with its password.

Install phpMyAdmin on Windows 10 WSL

Congratulations! You have successfully installed phpMyAdmin. Thanks for using this tutorial for installing the latest stable version of the phpMyAdmin on Windows Subsystem for Linux 2 (WSL 2) on the Ubuntu 20.04 LTS (Focal Fossa) system. For additional help or useful information, we recommend you check the official Ubuntu 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

r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button