A LAMP stack is four open-source programs on one server: Linux, Apache, MySQL and PHP, with Perl or Python able to fill the P. The browser hits Apache, PHP builds the HTML, and MySQL holds the records. WordPress and Magento run on this pattern.
What the four LAMP stack layers do
Each letter is a job. Linux runs the server, Apache accepts the request, MySQL stores the rows, and PHP builds the HTML. Perl or Python can take the P without changing the other three letters.
- Linux is the operating system. On WebJi® shared plans that system is AlmaLinux. On a server you install yourself, Ubuntu is the usual choice.
- Apache listens on ports 80 and 443, matches the host name to the site, and either sends a file or hands the request to PHP.
- MySQL stores the rows: posts, users, orders and settings. The application talks to it with SQL. MariaDB can sit in this seat because it speaks the same SQL.
- PHP is the usual P. WordPress, Magento and Laravel are PHP. Perl or Python can fill the same letter on a server that is still called LAMP.
How a request travels through a LAMP stack
A LAMP stack handles a page view in one direction. The browser talks to Apache, Apache calls PHP, and only PHP talks to MySQL.
- DNS, TCP and TLS bring your connection to the server on port 443.
- Apache receives the request for /blog/post-1 and matches it to the right virtual host.
- Seeing a dynamic route, Apache invokes PHP, which loads WordPress.
- WordPress connects to MySQL/MariaDB, queries wp_posts for the slug, wp_options for settings and wp_postmeta for custom fields, then assembles HTML through the theme.
- Apache returns the finished page; CSS, JS and images are served directly as static files, no PHP needed.
Total: milliseconds on a healthy stack. This division — dynamic pages through PHP, static files direct — is also the mental model for caching: full-page caches store the finished HTML so the PHP and MySQL work happens once instead of per visitor.
Drawn as boxes, that path is browser, Apache, PHP, then MySQL. A stylesheet or image never enters the last two boxes.

MySQL and MariaDB in a LAMP stack
The M was MySQL. MariaDB is a later fork that accepts the same SQL and the same PHP drivers, so a host can use it and still call the stack LAMP.
WebJi® Linux plans use MySQL 8-era databases. Moving an application between MySQL and MariaDB is a dump and an import, not a new site.
In cPanel, or with SELECT VERSION(), the version string names the engine. If it says MariaDB, ordinary backups and queries still work. Test a MySQL-only feature on a copy before you change engines.
How a LAMP stack compares with LEMP and LiteSpeed
LAMP means Apache. LEMP puts Nginx in that seat and runs PHP as PHP-FPM. LiteSpeed reads .htaccess like Apache and runs PHP through LSAPI. WAMP is Apache on Windows. MEAN is not LAMP: it is MongoDB, Express, Angular and Node.js.
| Stack | Web server | Database | Language | Fits when |
|---|---|---|---|---|
| LAMP | Apache | MySQL or MariaDB | PHP, Perl or Python | The app uses .htaccess and PHP |
| LEMP | Nginx | MySQL or MariaDB | PHP-FPM | You can edit the server config, not per-folder files |
| LiteSpeed | LiteSpeed | MySQL | PHP via LSAPI | You want Apache-style rules plus a server cache |
| WAMP | Apache | MySQL | PHP | The machine is Windows, usually a local dev PC |
| MEAN | Node.js | MongoDB | JavaScript | The app is JavaScript end to end, not PHP |
Nginx does not read a .htaccess file in each folder. Those rules belong in the server config, which shared hosting usually locks. Apache and LiteSpeed are why PHP apps on cPanel still ship rewrite files.
WebJi® Linux hosting uses LiteSpeed in place of Apache, on AlmaLinux, so those rewrite files still apply. Google Cloud's LAMP page is the same four programs beside Cloud SQL. It is not a different acronym and not a WebJi® plan.
When a LAMP stack is still the right choice
Yes. A LAMP stack is still what PHP applications expect. WordPress, WooCommerce, Magento, Joomla, Drupal and Laravel need PHP and a SQL database.
The name dates to 1998, when Michael Kunze used it for this bundle. A JavaScript stack does not upgrade those PHP apps. It replaces them. Use WordPress hosting when the site is WordPress and you want that stack run for you.
What shared Linux hosting already runs
Shared Linux hosting is this stack already installed. You do not patch Linux, the web server or MySQL. You pick a PHP version and publish the site.
WebJi® Linux hosting, read on 30 October 2026 from the plan table, lists L-Basic at ₹300 a month, L-Unlimited at ₹400 and L-Developer at ₹700, before 18% GST. The rows are on Linux hosting.
Those accounts use AlmaLinux, cPanel, LiteSpeed and MySQL, with PHP 8.1, 8.2 or 8.3 chosen per site. A server that is not in that table is quoted by email before payment.
A shared account is the wrong tool when you need root or a process the host limits block. A VPS server is the next machine, and you patch the stack yourself unless that VPS is managed.
How to install a LAMP stack yourself
Install a LAMP stack only on a server you administer. Shared hosting already has the layers, and package installs are blocked.
On Ubuntu the packages are apache2, mysql-server, and php with the MySQL extension and the Apache PHP module. Enable both services after a reboot, and open ports 80 and 443 on the firewall that image uses. There is no single LAMP download. Each layer is its own package.
- Install those packages from the distribution repositories.
- Create a database and a user that is not the database root.
- Put a PHP file in the web root that prints the PHP version, and open it in a browser.
- From that file, read one row from the database, then delete the file.
You know it worked when the test URL shows a PHP version and one database row, and a CSS file returns with no PHP warning.
If the browser downloads the PHP file as text, the Apache module is not loaded. If the page is a database error, the user, host or password does not match.
cPanel hosting skips this list, because the panel already exposes the same layers.
Questions about a LAMP stack
What is a LAMP stack?
It is Linux, Apache, MySQL and a scripting language, usually PHP, on one server. Apache takes the browser request, the language builds the page, and MySQL stores the records.
What does each letter in LAMP stand for?
L is Linux, A is Apache, M is MySQL or a compatible database such as MariaDB, and P is PHP, Perl or Python. Most public sites use PHP for the P.
What is the difference between a LAMP stack and LEMP?
LAMP uses Apache. LEMP uses Nginx and usually runs PHP as a separate PHP-FPM pool. Linux, the database and the language stay. Nginx does not read .htaccess, so folder rules have to move into the server config.
Is the LAMP stack still used?
Yes. WordPress, WooCommerce, Magento, Joomla, Drupal and Laravel still expect PHP and a SQL database. A Node.js stack is a different application, not a setting those PHP apps switch on.
Is cPanel shared hosting a LAMP stack?
It does the same jobs. On WebJi® Linux hosting the system is AlmaLinux, the panel is cPanel, the database is MySQL, and PHP 8.1, 8.2 or 8.3 is chosen per site. LiteSpeed takes Apache's seat and still reads .htaccess.
How do I know a LAMP install worked?
A PHP file in the web root prints its version, and that file can read one row from MySQL. A CSS file returns without a PHP warning. Delete the test file after both checks pass. If PHP downloads as plain text, the web server is not passing files to PHP.

