Auto Installation of LAMP Stack

Introduction

LAMP is a web service stack, named as an acronym of the names of its original four open-source components: the Linux operating system, the Apache HTTP Server, the MySQL database system, and the PHP programming language. LAMP is suitable for building dynamic web sites and web applications.

This guide provides a script to automate the installation of the LAMP stack on both CentOS and Debian/Ubuntu systems.

PHP Versions

The default PHP version is 8.3. However, the script installs PHP versions: php7.4, php8.0, php8.1, php8.2, and php8.3.

Installation

For the Auto Installation of LAMP, you just need to download the lamp.sh script in your server and need to execute that script. Run the following commands in your server to install LAMP

Note: Installation process may take few minutes to complete due to the number of packages involved.

wget wiki.crowncloud.net/scripts/lamp.sh
chmod a+x lamp.sh
./lamp.sh