Please provide a detailed step-by-step guide on how to install and configure Apache webserver on Ubuntu OS version 18.04 with PHP 7.2 support. Include any necessary prerequisites, commands, and configurations. Additionally, provide instructions on how to test that Apache and PHP are functioning correctly.
This prompt doesn't seem malicious.