CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack

73

I am new Red Hat Enterprise Linux version 7 user/sysadmin/developer. This version made the big number change for RHEL 7/CentOS 7. How can I install LAMP (Linux, Apache, MariaDB, PHP) stack on a RHEL version 7 or CentOS Linux version 7 using CLI or over ssh based session?

CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack