Question

How do I install and setup phpMyAdmin on a LAMP Droplet with Virtual Hosts

Original question here

I am trying to add phpMyAdmin to a droplet I am trying to follow this tutorial the tutorial is written for Ubuntu 16.04 I run 18.04.

I have currently

Besides the above, I have run this in the terminal

  • sudo apt-get update
  • sudo do-release-upgrade
  • apt-get upgrade
  • apt-get dist-upgrade

I am now trying to install phpMyAdmin from this tutorial

The problem occurs when I run:

sudo phpenmod mcrypt 

It gives me this error: Module mcrypt ini file doesn’t exist under /etc/php/7.2/mods-available

If I run sudo phpenmod mbstringnothing happens.

So I can’t get any further with the tutorial

This person have/had the same problem as me and one guy reply to him and said:

“If you installed it in a different way or have multiple VirtualHosts, then we might need to do a little adjusting to get it running.”

The thing is, this tutorial encouraged me to add VirtualHosts so I did that following this tutorial as I also mentioned above, but now I have no idea on how to proceed and install phpMyAdmin on one of the virtual host’s websites


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.

Hey friend!

I may be able to help on this. Instead of phpenmod mcrypt can you try this tutorial instead?

https://websiteforstudents.com/install-php-7-2-mcrypt-module-on-ubuntu-18-04-lts/

I’ve not tested it, but mcrypt isn’t in the repositories as a PHP module, so this looks like the easiest path.

Jarland