zhaocrazy / laravel-ubuntu-installer

Install a LNMP env for Laravel on Ubuntu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel-Ubuntu-Installer

install-laravel-on-ubuntu

Introduction

This script is for installing a Laravel environment on Ubuntu.

Please make sure you are running as root!

Features

  • js (nvm + node + npm + yarn + pm2)
  • php (php + composer)
  • mysql
  • nginx
  • redis
  • elasticsearch (elasticsearch 7 + ik plugin)

You can choose stuffs you need to install instead of install all of them.

install-laravel-on-ubuntu

Also, you can install any version of node / php by inputting the version of them.

Useage

wget -qO- https://raw.githubusercontent.com/dengsihan/laravel-ubuntu-installer/main/download.sh - | bash

Daily Use

  1. Add A New Site
./scripts/nginx_add_site.sh
  1. Add A New MySQL user & database
./scripts/mysql_add_user.sh
  1. Run script as www-data
sudowww 'php artisan config:cache'

About

Install a LNMP env for Laravel on Ubuntu


Languages

Language:Shell 95.7%Language:Smarty 4.3%