but I want to learn php on this machine what's the best way to get MySQL php lamp or apache and all that good stuff for PHP development on this ubuntu machine?
everything seems outdated or there is always new stuff and new code hard to differinate what to use and keep up with.
Unfortunately, it doesn't also install phpMyAdmin like MAMP does. But from a quick search, it seems that phpMyAdmin can be installed by running a single command in terminal.
https://www.digitalocean.com/community/tutorials/how-to-inst...
Probably, you'll use the same process on 19.04 as on 18.04.
Benefits: Fairly latest versions. Everything in one directory (I usually install them under /opt). No effect on system packages. No need to add PPAs for new versions.
Drawbacks: Can't update an existing installation; have to install a new version of the stack in another location and migrate.
I switched to Linux Mint recently (which is a offshoot of Ubuntu) to have more recent PHP/MySQL versions. There are many guides out there for getting LAMP up and running with Mate as well as Ubuntu. Just include the version with it (i.e. search install php mysql ubuntu 19.10 )
Check out laracasts.com https://laracasts.com/series/laravel-6-from-scratch/episodes...
See comments about linux.
I run lxc containers and PHP on another box and run sublime seemlessly on the remote box to edit code.