This repository contains a shell script for installing the LEMP stack, Composer, and Redis on Ubuntu-based systems. After running the script, you will have a fully functional LEMP stack with Composer and Redis installed on your Ubuntu-based system.
LEMP stack is a combination of software used to build and deploy web applications. LEMP stands for Linux, Nginx, MySQL, and PHP.
- Linux is the operating system on which the stack runs.
- Nginx is the web server that handles incoming HTTP requests and forwards them to the appropriate PHP files.
- MySQL is the database management system used to store and retrieve data for the web application.
- PHP is the server-side scripting language that is used to dynamically generate HTML pages for the web application.
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install.sh - Run using
sudo bash install.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install-php-7.1.sh - Run using
sudo bash install-php-7.1.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install-php-7.2.sh - Run using
sudo bash install-php-7.2.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install-php-7.3.sh - Run using
sudo bash install-php-7.3.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install-php-7.4.sh - Run using
sudo bash install-php-7.4.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install-php-8.0.sh - Run using
sudo bash install-php-8.0.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install-php-8.1.sh - Run using
sudo bash install-php-8.1.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install-php-8.2.sh - Run using
sudo bash install-php-8.2.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/install-php-all.sh - Run using
sudo bash install-php-all.sh - MySQL password can be found in
mysql_cred.txtin server root
- Copy script by using
wget https://raw.githubusercontent.com/saaiful/LEMP/master/uninstall.sh - Run using
sudo bash uninstall.sh
Once the LEMP stack is installed, you can start deploying your web application to the server. Here are a few basic steps to get started:
- Create a new PHP file in the /var/www/html/ directory. This file will serve as the main entry point for your web application.
- Write your PHP code in the file.
- Visit http:///filename.php in your web browser to see your PHP code in action.