New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
Services & ToolsInstall phpMyAdmin, Apache2 und MySQL

How to install PhpMyAdmin, Apache2 and MySQL on your Linux VPS

Install PhpMyAdmin, Apache2 and MySQL on a Linux VPS (Ubuntu/Debian)

2 min read
Oct 15, 2023

Instructions for installing PhpMyAdmin, Apache2 and MySQL on a Linux VPS.

Install Apache2

  1. Update packages
    Open a terminal window on your server and run the following command:

    sudo apt update && apt install apache2 -y
    

Install MySQL

  1. Install MySQL
    Enter the following command to start the installation of MySQL:

    sudo apt install mysql-server -y
    
  2. Set password
    During the installation you will be asked to set a password for the MySQL root user. Enter a secure password and save it in a safe place.

Install PhpMyAdmin

  1. Install PhpMyAdmin
    Enter the following command to start the installation of PhpMyAdmin:

    sudo apt install phpmyadmin -y
    
  2. Select web server
    During the installation you will be asked to select a web server. Select Apache2 and press the Enter key.

  3. Set admin password
    During the installation you will be asked to set a password for the PhpMyAdmin administrator account. Enter a secure password and save it in a safe place.

  4. Test installation
    When you are finished, open your web browser and enter the address http://<server-ip>/phpmyadmin/. You should be prompted to log in with your PhpMyAdmin administrator account.

Configure PhpMyAdmin

  1. Open configuration
    Open the file config.inc.php, which is located in the directory /etc/phpmyadmin/:

    nano /etc/phpmyadmin/config.inc.php
    
  2. Change Blowfish Secret
    Change the line $cfg['blowfish_secret'] to a random string that is at least 32 characters long.

Written byEmeraldHost Team
Last updated on Mar 19, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord

Join our Discord community 1257 members online right now