Cara menggunakan phpmyadmin not found ubuntu
The phpMyAdmin utility is a web-based graphical database management tool. By installing phpMyAdmin, you no longer need to use the default command-line interface to manage databases. Show
This guide will shows you how to lay the groundwork and install phpMyAdmin on Debian 11. Prerequisites
Step 1: Install LAMP Stack on Debian 11phpMyAdmin requires the LAMP stack to work correctly. This section shows you how to install the supporting software to turn your Debian 11 system into a web server. If you already have a LAMP stack installed, you can skip directly to the section. Step 1.1: Update Software Packages and Install wgetOpen a terminal window and update your software package lists with the following command:
Enter the following command to install the wget tool:
The wget utility allows you to download files directly from the terminal window. You now have the tools to install a LAMP stack and phpMyAdmin. Step 1.2: Install ApacheApache is a web server software that processes requests and transmits data over an HTTP network. Install Apache by entering the following command in the terminal:
The process takes a few moments to complete. Enter the following command to confirm the Apache service is running:
The report shows a green status message that says active (running). Press 6 to return to the command prompt.Step 1.3: Install PHP on Debian 11The PHP programming language and coding environment are essential for running a web application like phpMyAdmin. Install core PHP packages and Apache and MySQL plugins with the following command:
Once the installation process is complete, verify that PHP has been installed:
The system displays the current PHP version along with the release date. Step 1.4: Install and Set Up MariaDB on Debian 11This guide uses the MariaDB open-source relational database management system instead of MySQL. MariaDB and MySQL are compatible, and many commands and features are identical. To install MariaDB, enter the following command:
Once the process is complete, verify the MariaDB installation:
Like with Apache, you see an active (running) status. Before installing phpMyAdmin, you need to configure the MariaDB database. Secure MariaDBConfigure basic MariaDB security features by launching a built-in script:
As you have not yet set a root password for your database, hit Enter to skip the initial query. Complete the following queries:
The output shows the MariaDB installation is now secure. Create a New MariaDB UserThe phpMyAdmin utility needs a designated user to connect to your database. Creating a new MariaDB user improves security and allows you to control the level of permissions granted to this user. Use our detailed guide to create a new MariaDB user and grant privileges. Once you set up a MariaDB user, start the phpMyAdmin installation process. Step 2: Download phpMyAdminUse the 2 command to retrieve the latest stable version of phpMyAdmin:
To download the English version only, use this command instead: 0The 3 option instructs 2 to save the files directly in the Downloads directory. Use any directory to download the file and remember the path.Note: To download a specific version, or to check the latest version, please refer to the developer’s phpMyAdmin page. Step 3: Check phpMyAdmin GPG KeyEach downloaded archive has a corresponding .asc file that contains its unique key signature. Once both files are in the same folder, the signature can be verified. 1. To verify the GPG key for phpMyAdmin, download the phpMyAdmin keyring to the directory you used previously. In our case Downloads: 12. Access the Downloads directory and import the keyring: 2 33. Download the corresponding GPG .asc file for your version of phpMyAdmin and stay in the same directory: 44. Stay in the same directory (in our case Downloads) and verify the .asc file against the keyring you downloaded: 5The system responds by displaying GPG key information. You can now compare the GPG key to the developer credentials on the . Step 4: Unpack and Configure phpMyAdmin1. Create a phpMyAdmin directory in the Apache web root directory: 62. Access the Downloads directory and unpack the phpMyAdmin tar.gz files to the newly created directory: 7The terminal shows no response when the file is unpacked. 3. Create a default configuration file: 84. Use the nano text editor (or your preferred text editor) to add a secret passphrase to the config.inc.php file: 9Locate the following line: 0Add a secret passphrase between the single quotes. For example: 1Use a complex passphrase of your choice and then exit and save the file ( 5).5. Change the permissions for the config.inc.php file: 26. Change ownership of the phpMyAdmin directory: 37. Restart Apache: 4Step 5: Access phpMyAdmin from BrowserUse a web browser and navigate to the localhost/your_phpMyAdmin_directory adress to access phpMyAdmin. In our case: 5The system shows the phpMyAdmin login screen and establishes a connection to the local Apache, MariaDB, and PHP files that you have created. Log in to phpMyAdmin with the username and password for the MariaDB user you had created. Conclusion You have now installed phpMyAdmin on your Debian 11 system. Access the GUI from a browser and start administering your databases more efficiently. |