Install LAMP
For the purposes of this exercise the Apache document root will be moved to /home/mike/www/ and MySQL data directory moved to /home/mysql and a virtual host created called pcdocgo.co.uk
Use Tasksel to install LAMP services
$ sudo apt install tasksel
Install latest Apache, MySQL and PHP servers
$ sudo tasksel install lamp-server
Configure Apache
Add user to Apache www-data group
$ sudo useradd -G www-data mike
Prepare new document root
$ mkdir /home/mike/www $ sudo rsync -av /var/www/html /home/mike/www
Note: rsync –