https://linuxconfig.org/how-to-install-lamp-ubuntu-18-04-bionic-beaver-linux-apache-mysql-php
sudo apt install tasksel
sudo tasksel install lamp-server
Test your LAMP Install
Create a simple PHP Info page to test your LAMP installation:
$ sudo bash -c "echo -e '<?php\nphpinfo();\n?>' > /var/www/html/phpinfo.php"
https://linuxconfig.org/how-to-install-wordpress-on-ubuntu-18-04-bionic-beaver-linux