LAMP & WordPress

LAMP & WordPress

Purpose

Understanding LAMP & WordPress: from web servers to databases.

“An ocean traveler has even more vividly the impression that the ocean is made of waves than that it is made of water.”

Authur S. Eddington

What is a stack?

Web stacks are composed of multiple languages used at the same time: a bundle that runs everything from the front end to the back end, from databases to server administration to rendering the website.

LAMP & WordPress stack

WordPress sites’ most common infrastructure is the LAMP stack: Linux, Apache, MySQL, and PHP.

  • Linux as the operating system (OS)
  • Apache as the webserver
  • MySQL as the database
  • PHP as the language

Linux

Linux is the operating system on which most web servers run. However, servers can run on other operating systems, such as Windows or Mac OS, making “WAMP” and “MAMP” standard configurations for people who create servers on their computers to do local development.

Apache

Apache is the most common HTTP web server software. Server software allows servers to process and respond to requests for information (“HTTP requests”) sent by remote computers, making the interactivity of the internet possible. By far, the most common way a WordPress developer will interact directly with Apache is through an Apache-only file called .htaccess, which can be used, for example, to redirect one URL on your site to another. Other than that, Apache is “in the background” for most WordPress programming tasks.

MySQL

Every WordPress site has a MySQL database, which stores and communicates crucial things like post and page contents, site settings, users, and user permissions. MySQL was the first, and is still the most popular, free software RDBMS solution. It remains the go-to for many types of applications, for both practical and historical reasons.

PHP

PHP is necessary for WordPress. The computer that’ll host your WordPress site has to be able to parse and execute PHP code. If it can’t, you don’t get to run WordPress. PHP is a server-side language interpreted by web servers; most PHP goes through extensive processing to generate a given page’s HTML content in a WordPress site. The server then delivers to the user’s browser for rendering. The P in LAMP can also stand for other programming languages such as Perl or Python.

Posted by