Generated by GPT-5-mini| LAMP stack | |
|---|---|
![]() ScotXW · CC BY-SA 3.0 · source | |
| Name | LAMP stack |
| Title | LAMP stack |
| Developer | Various |
| Released | 1998 |
| Programming language | C, PHP, Perl, Python, SQL |
| Operating system | Unix-like |
| Genre | Web application stack |
LAMP stack is a web application software bundle traditionally combining a Unix-like Unix, Apache HTTP Server, MySQL and PHP (or Perl / Python) environment to serve dynamic websites and services. Originating in the late 1990s, it became a foundational platform for projects ranging from small blogs to large-scale applications, informing practices used by Facebook, Wikipedia, WordPress, Drupal, and Joomla!. The stack influenced cloud adopters such as Amazon Web Services, Google Cloud Platform, and Microsoft Azure and intersected with operating systems like Debian, Ubuntu, Red Hat Enterprise Linux, and CentOS.
The stack unites components that operate across layers familiar to administrators of Linux, FreeBSD, and OpenBSD systems: a web server, a relational database, and server-side scripting. Adoption surged during the dot-com era alongside projects like Apache HTTP Server and services hosted by companies such as DreamHost, GoDaddy, and Rackspace. Notable software built on the stack includes WordPress, MediaWiki, phpMyAdmin, Magento, and Ubuntu Server-based distributions, while institutions such as MIT, Stanford University, and Harvard University have taught related deployment techniques.
The canonical layers are a Unix-like operating system (often Linux distributions such as Debian, Ubuntu, Fedora, CentOS), the Apache HTTP Server as web server, the MySQL relational database (or forks like MariaDB), and scripting via PHP, Perl or Python. Each component has an ecosystem: Apache modules connect to projects like mod_php, mod_perl, and mod_wsgi; MySQL integrates with tools such as phpMyAdmin, MySQL Workbench, and connectors for Java frameworks like Hibernate and Spring Framework. Scripting languages link to frameworks such as Laravel, Symfony, Django, and Catalyst, while databases are compared with systems like PostgreSQL, SQLite, and enterprise products from Oracle Corporation and Microsoft SQL Server.
Early proponents included developers influenced by work at institutions such as MIT and companies like Netscape Communications Corporation and Sun Microsystems. The term emerged contemporaneously with the rise of Apache HTTP Server and the popularization of MySQL by companies like MySQL AB and contributors who later joined Sun Microsystems and Oracle Corporation. The stack evolved as alternatives and forks appeared — MariaDB formed by original MySQL developers, and language shifts saw Python and Perl gain traction alongside PHP. Major web platforms like Facebook migrated parts of their infrastructure toward custom solutions, while projects such as WordPress and Drupal continued expanding the stack’s footprint. The growth of virtualization and containerization via Docker (software), Kubernetes, and cloud orchestration from Amazon Web Services reshaped deployment models across organizations including Netflix, Airbnb, and Twitter.
Deployment practices employ configuration management and orchestration tools from Ansible (software), Puppet (software), Chef (software), and SaltStack integrated with continuous integration systems like Jenkins and Travis CI. Administrators configure Apache HTTP Server virtual hosts, enable TLS via OpenSSL and certificate authorities such as Let's Encrypt, and manage database schemas with tools like Flyway and Liquibase. Containerized deployments use Docker Compose and orchestration with Kubernetes, often on cloud platforms like Amazon Web Services, Google Cloud Platform, and Microsoft Azure. Backup and monitoring integrate solutions from Prometheus (software), Grafana, Nagios, and Zabbix; logging pipelines utilize ELK Stack components like Elasticsearch, Logstash, and Kibana.
Securing deployments draws on practices promoted by entities such as OWASP and compliance frameworks like PCI DSS and ISO/IEC 27001. Administrators mitigate injection threats using prepared statements with database drivers and ORM libraries from Doctrine (PHP) or SQLAlchemy; they enable HTTPS via TLS best practices and harden Apache HTTP Server with modules like mod_security. Performance tuning involves connection pooling (e.g., ProxySQL), opcode caching with Zend OPcache, query optimization, and horizontal scaling using load balancers such as HAProxy and NGINX. High-traffic sites (for example Facebook, Wikipedia) adopt caching layers with Memcached and Redis (software), CDN services from Akamai Technologies or Cloudflare, and microservice migration patterns advocated by practitioners at companies like Google and Amazon.com.
Variants substitute components: use of NGINX instead of Apache HTTP Server (forming commonly named stacks), replacement of MySQL with PostgreSQL or MariaDB, and adoption of application servers for Java such as Apache Tomcat or Jetty. Full-stack frameworks and platforms like MEAN stack (with MongoDB and Node.js), Ruby on Rails, Django, and ASP.NET represent architectural alternatives. Container-native patterns led to new combinations deployed with Docker and Kubernetes, while platform services from Heroku and Google App Engine present managed alternatives to self-hosted stacks. Major enterprises and projects—including Spotify, Uber, and LinkedIn—have likewise evolved bespoke stacks emphasizing scalability, reliability, and polyglot persistence.
Category:Web server software