Install and Configure Apache 2 LAMP uses Apache web server 2, which is popular and widely used. You can install…