Howtoforge published a tutorial about installing the LAMP stack on Debian 11.
Install LAMP Stack on Debian 11
The LAMP Stack is a common set of open-source tools used to host websites and applications on the web. LAMP Stack is a web development platform that uses Linux as an operating system, Apache as a web server, MariaDB/MySQL as a database server, and PHP as a scripting language. It is so widely used and provides a proven set of software for delivering high-performance web applications.