I started using Linux (Ubuntu 18.04) recently and I've come across many difficulties.
So I tried sometimes to install the lampp stack on Ubuntu and was not successful. There was always some mistake. And I want to know the correct way to install each one, in this case, apache, mysql and php, in the latest versions. The problem is that I've been installing and uninstalling packages. And it's a little messy. What should I do? How to remove the mess and install everything again with the best possible way to work?