Skip to content

mendylivium/lemp-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

LEMP Install Script

This script automates the installation and configuration of NGINX, PHP, and MySQL on a Debian-based system. It also sets up a basic PHP application and optionally installs phpMyAdmin.

Features

  • Installs NGINX, PHP, MySQL
  • Configures NGINX for a PHP application
  • Optionally installs and configures phpMyAdmin
  • Allows customization through command-line arguments

Prerequisites

  • Debian-based system (e.g., Ubuntu)
  • Root or sudo privileges

Usage

  1. Update Repo First:

    sudo apt-get update
    sudo apt-get install -y ca-certificates curl gnupg
    
  2. Run This Script:

    curl -sL https://raw.githubusercontent.com/mendylivium/lemp-install/master/install-lemp.sh | sudo bash -s

Command-Line Arguments

  • --db-pass=: Set the MySQL root password (default: admin1234)
  • --db-name=: Set the name of the MySQL database (default: laravel)
  • --app-name=: Set the name of the application (default: laravel)
  • --install-app=: Space-separated list of additional packages to install (e.g., bcmath pdo)
  • --install-php-ext=: Space-separated list of PHP extensions to install (e.g., bcmath pdo)
  • --install-phpmyadmin: Install and configure phpMyAdmin
  • --for-laravel: Configure for Laravel Project

Example Usage

  • Install Laravel and phpMyAdmin
curl -sL https://raw.githubusercontent.com/mendylivium/lemp-install/master/install-lemp.sh | sudo bash -s -- --install-php-ext="mbstring xmlrpc gd xml cli zip curl bcmath sqlite3" --install-app="pdo pdo_mysql" --install-phpmyadmin --install-laravel

About

Lemp Easy Install (Optional: phpMyAdmin and Laravel)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages