Question

intall phpmyadmin into LEMP server

I did follow this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-phpmyadmin-on-a-lemp-server to install PHPMyAdmin to Lemp server but it doesn’t work when i run myipaddress/phpmyadmin. This page isn’t working.


Submit an answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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/```

Hello,

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:

wget https://files.phpmyadmin.net/phpMyAdmin/5.0.2/phpMyAdmin-5.0.2-all-languages.zip

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

sudo apt install unzip

After that unzip the archive:

unzip phpMyAdmin-5.0.2-all-languages.zip

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!

Best,

Bobby

and when I follow this tutorial https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-20-04 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.