intall phpmyadmin into LEMP server

I did follow this tutorial to install PHPMyAdmin to Lemp server but it doesn’t work when i run myipaddress/phpmyadmin. This page isn’t working.

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
February 21, 2022

Hi @adrosonline,

I would like to turn your attention to the following paragraph:

Create a symbolic link between phpMyAdmin and your site’s directory. If you were using the previous tutorial, it may be still located in the nginx default directory, otherwise link it with the appropriate place:

sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/www

The above assumes that your Nginx's default directory is /usr/share/nginx/www which you might have changed or disabled the default Nginx config located in ```/etc/nginx2/sites-enabled/```
Bobby Iliev
Site Moderator
Site Moderator badge
February 20, 2022


In case that you already have Nginx and PHP installed, what you could do is to just download PHPmyAdmin directly rather than installing it via apt.

To do so you could just run:


Note: if you don’t have upzip already installed you can install it with:

sudo apt install unzip

After that unzip the archive:


Rename the folder:

mv phpMyAdmin-5.0.2-all-languages phpmyadmin

Move the phpMyAdmin folder to your document root:

sudo mv phpmyadmin /var/www/html

Note: change the /var/www/html path in case you are using a custom virtual host with a non-standard document root

Then finally change the ownership:

sudo chown -R www-data: /var/www/html/phpmyadmin

Hope that this helps!



and when I follow this tutorial i can’t run this command to install packages: sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl error : E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.