Latest Ubuntu(/LAMP) in VirtualBox

Linux

Ubuntu 18.04

Update&Upgeade

sudo apt update && sudo apt upgrade

Guest Additional

sudo apt install virtualbox-guest-dkms

sudo mount /dev/cdrom /media/cdrom

sudo /media/cdrom/VBoxLinuxAdditions.run

sudo reboot

Apache2

sudo apt install apache2

Mysql 5.7

sudo apt install mysql-server

PHP 7.2

sudo apt install php

PHP Extension

sudo apt install php-pear php-fpm php-dev php-zip php-curl php-xmlrpc php-gd php-mysql php-mbstring php-xml libapache2-mod-php

Shared Folder

Add a shared folder in the VM's setting

sudo mount -t vboxsf FOLDER_NAME ~/LINKED_FOLDER