Completely Uninstall PhpMyAdmin On NGINX Ubuntu 18.04
Introduction
PhpMyAdmin is a very popular web-based graphical tool for managing MySQL databases in the Ubuntu operating system. It is used by web developers, system administrators, and database admins around the world for database management. PhpMyAdmin allows a user to install, configure, view, edit, and delete database objects. It also provides support for querying and reporting, and includes features for super users and webmaster tools.
This tutorial covers the steps to uninstall PhpMyAdmin from NGINX Ubuntu 18.04. We will use the apt package manager and command line to remove the files associated with PhpMyAdmin completely. We will also show you how to make sure that any left-over configuration or data files still exist on the system.
Prerequisites
Before you begin this guide, you’ll need the following:
- A server running the Ubuntu 18.04 operating system.
- A user with non-root sudo privileges.
- A working installation of the NGINX web server.
Uninstall PhpMyAdmin package
The first step is to uninstall the PhpMyAdmin package. This can be done with the apt package manager. First, update the apt package manager cache:
sudo apt update
Then, use the apt package manager to uninstall PhpMyAdmin package:
sudo apt remove phpmyadmin
With this command, the apt package manager will download and remove all files associated with the package. If you have any other PhpMyAdmin-related packages installed (such as php-mbstring and libapache2-mod-php), they will also be removed.
Remove configuration files
The question may arise as to whether any configuration files were left over after the package was removed. To ensure all configuration files are removed, you need to first remove the configuration file for the web server that was used to serve PhpMyAdmin. In this tutorial, we’ve used the NGINX web server. To remove the configuration file, execute the following command:
sudo rm /etc/nginx/sites-available/phpmyadmin.conf
Next, you need to remove any configuration files that PhpMyAdmin was using. To find them, use the following command in the terminal:
sudo find / -name 'phpp*' -exec rm -f {} ;
Once you have executed the command, it will search the entire file system for any files which contain the string “php”. Any such files will be removed automatically.
Remove Data files
Once the configuration files are deleted, you need to check if there are any user data files left behind. To do this, you need to use the following command:
sudo find / -name 'phpmyadmin_data*' -exec rm -f {} ;
This command will search the system for any files which contain the string “phpmyadmin_data” and delete them if it finds them. This command will also search the entire file system, so it is important that you make sure that there are no user data files that you need to keep before executing it.
Remove leftovers
The last step is to remove any directories that were created when you installed PhpMyAdmin. To do this, use the following command:
sudo rm -rf /var/lib/phpmyadmin
This command will delete the entire folder and contents of the directory. Any files in this folder will be deleted, so make sure that there are no files in the folder which you need to keep.
Conclusion
In this tutorial, we have shown you how to completely uninstall PhpMyAdmin from NGINX on Ubuntu 18.04. To do this, we showed you how to use the apt package manager and command line to remove the files associated with PhpMyAdmin, as well as the configuration files and user data files left behind.
Frequently Asked Questions (FAQs)
Q1. Is PhpMyAdmin necessary to uninstall?
No, it is not absolutely necessary to uninstall PhpMyAdmin. If you are using an alternative web-based database management tool, you may not need to uninstall PhpMyAdmin.
Q2. Will uninstalling PhpMyAdmin affect any other programs or applications?
No, uninstalling PhpMyAdmin should not affect any other programs or applications. However, if you have any specific configuration files that you have edited, it is recommended to back them up before uninstalling PhpMyAdmin.
Q3. Is the command provided to remove configuration files and user data files valid?
Yes, the commands provided in this tutorial are valid for removing the configuration files and user data files associated with PhpMyAdmin. It is recommended to back up any important files before executing these commands.
Thank you for reading this article. To learn more about other topics related to web development, system administration, and database management, please take a look at our other articles.
Related Posts:
- Check Nginx Status Ubuntu 16.04 Check Nginx Status Ubuntu 16.04 What is Nginx? Nginx (pronounced "engine x") is an open source web server that is used for hosting websites and applications on a wide range…
- Install Nginx Mysql Phpmyadmin Ubuntu Install Nginx Mysql Phpmyadmin Ubuntu 1. Introduction In today's tutorial, we will show you how to install Nginx, MySQL, and phpMyAdmin on Ubuntu 20.04. Nginx is an open source web…
- Ubuntu Server18 How To Enable Nginx Pdo Mysql Ubuntu Server18: How to Enable Nginx Pdo Mysql As a developer, you may have heard of Nginx, PDO, and MySQL – all are essential components of web applications. Nginx is…
- Remove Nginx Full Complete On Ubuntu 18 Remove Nginx Full Complete On Ubuntu 18 Uninstallating Nginx From Ubuntu Ubuntu is one of the most popular Linux-based operating systems, and it has a wide variety of programs available…
- Linux Nginx Mysql Php Lemp Linux Nginx Mysql Php Lemp What is Linux, Nginx, MySQL, PHP (LEMP)? Linux, Nginx, MySQL, PHP (LEMP) is a software stack combination of Linux, Nginx, MySQL, and PHP, commonly referred…
- Ubuntu 16.04 Nginx Ipv6 Ubuntu 16.04 Nginx Ipv6 What is Ubuntu 16.04? Ubuntu 16.04 is a version of the Ubuntu Linux operating system for computers and servers. Ubuntu has been around since 2004, and…
- Can I Install Phpmyadmin In Nginx Can I Install Phpmyadmin In Nginx? PHPmyadmin is a web-based management tool for databases such as MySQL and MariaDB. It is a popular tool for web developers and database administrators…
- Install Phpmyadmin On Nginx Ubuntu Install Phpmyadmin On Nginx Ubuntu What Is Phpmyadmin? Phpmyadmin is a free, open source web application written in PHP specifically designed to help manage MySQL databases. It is a powerful…
- Nginx Install Custom Directory Phpmyadmin Nginx Install Custom Directory PhpMyAdmin Introduction to Nginx and PhpMyAdmin Nginx is a web server and content caching solution used to host a variety of web applications. It is highly…
- Ubuntu 18.04 Nginx Php Mariadb Ubuntu 18.04 Nginx, Php, and Mariadb Understanding Ubuntu 18.04 Ubuntu 18.04 is the latest version of the popular open-source Linux distribution. It is based on Debian and is known for…
- Check Nginx Version Centos 7 Check Nginx Version Centos 7 1. What is Nginx? Nginx is an open source web server software created by Igor Sysoev in 2002 and is widely used for powering the…
- Deploy Laravel Nginx Ubuntu 18 Deploy Laravel Nginx Ubuntu 18 Intro to Laravel Laravel is a free, open-source, Model-View-Controller (MVC) web framework written in PHP. It has become one of the most popular web development…
- 404 Nginx Phpmyadmin Centos 7 404 Nginx Phpmyadmin Centos 7 Configuration of Nginx on Centos 7 for Phpmyadmin Setting up Nginx on Centos 7 to work with Phpmyadmin is a very simple process. The first…
- How To Install Cachet Nginx How To Install Cachet Nginx Overview Cachet is an open-source monitoring platform that is widely used by web developers, DevOps engineers, and system administrators for monitoring the performance of a…
- How To Install Phpmyadmin On Nginx How To Install Phpmyadmin On Nginx Introduction PhpMyAdmin is an open source software program which is used to manage MySQL and MariaDB databases. It provides a graphical interface to execute…
- Nginx Howto Enable Mysql Pdo Nginx Howto Enable Mysql Pdo Introduction To PDO and Nginx PDO (PHP Data Objects) is a data access interface for the PHP programming language. It is an abstraction layer that…
- Ubuntu 18.04 Nginx Hide Port Ubuntu 18.04 Nginx Hide Port Introduction to Nginx with Ubuntu Nginx is an open source web server and reverse proxy software that is commonly used in Linux servers. It is…
- Install Nginx Phpmyadmin Centos 7 Install Nginx Phpmyadmin Centos 7 What is Nginx? Nginx is a web server that is used in Linux-based operating systems such as Centos 7. It is designed to handle high-traffic…
- Remove Apache And Install Nginx Centos 7 Remove Apache And Install Nginx Centos 7 Introduction Apache is an open source HTTP server used for hosting websites and web applications on the web. Although Apache is reliable and…
- Install Wordpress On Ubuntu 18.04 Nginx Install WordPress On Ubuntu 18.04 Nginx Introduction To Ubuntu And Nginx Ubuntu is a popular open-source operating system which has gained immense popularity over the years. It is easy to…
- Install Nginx 1.16 Ubuntu Install Nginx 1.16 Ubuntu Introduction to Nginx 1.16 Nginx 1.16 is a web server that helps you to serve web content quickly, efficiently and securely. It is especially popular with…
- Install Nginx Php Mysql Ssl & Wordpress On Ubuntu 18.04 Install Nginx Php Mysql Ssl & Wordpress On Ubuntu 18.04 What is Nginx, Php, Mysql, SSL and Wordpress? Nginx is a high-performance web server that is widely used to serve…
- Create Domain Using Nginx Virtualmin Title: Create Domain Using Nginx Virtualmin Create Domain Using Nginx Virtualmin What is Nginx Virtualmin? Nginx Virtualmin is an automated website management platform from Virtualmin. It provides a powerful web…
- Debian Install Nginx Php Mysql Phpmyadmin On Debian 9 Debian Install Nginx Php Mysql PhpMyAdmin On Debian 9 What Is Debian 9? Debian 9 (codenamed “stretch”) is the most recent stable version released by the Debian project, the developers…
- Install Phpmyadmin Nginx Ubuntu 16.04 Php 7 Install Phpmyadmin Nginx Ubuntu 16.04 Php 7 Introduction to PhpMyAdmin PhpMyAdmin is a web-based tool that enables the users to manage their MySQL databases. It also provides a graphical interface…
- Install Phpmyadmin Nginx Centos 8 Install Phpmyadmin Nginx Centos 8 What is Nginx? Nginx is an open source web server that is popular due to its high performance, scalability, stability, and low resource consumption. Nginx…
- How To Deactive Nginx Ubuntu How To Deactivate Nginx Ubuntu Introduction Nginx is a web server that’s popular in the Linux world because of its simple configuration, scalability, and performance. The Apache httpd web server…
- Install Phpmyadmin On Nginx Centos 7 Install Phpmyadmin On Nginx Centos 7 Introduction PhpMyAdmin is one of the most popular tools used to manage and administer a MySQL database. It is a web-based application and can…
- Membuat Webserver Nginx Php-Fpm Mariadb Phpmyadmin… Membuat Webserver Nginx Php-Fpm Mariadb Phpmyadmin Pada Freebsd 1. Mengapa Membuat Webserver Nginx Php-fpm Mariadb Phpmyadmin Pada Freebsd FreeBSD adalah sebuah sistem operasi berbasis Unix yang innovatif, kepemimpinan komunitasnya, performanya…
- Cara Install Phpmyadmin Di Nginx Ubuntu Cara Install Phpmyadmin Di Nginx Ubuntu Pengertian PhpMyAdmin PhpMyAdmin adalah antarmuka web-berbasis yang memungkinkan Anda untuk mengelola basis data MySQL dan istilah yang lebih umum dalam pengelolaan basis data SQL.…