This recipe assumes that you have an existing web application. This could be as simple as static pages or a full CMS such as WordPress.
We'll also need to install Apache utilities (not the full web server), which is generally packaged as apache2-utils on Debian/Ubuntu-based systems and httpd-tools on CentOS/RedHat-based distributions.