Skip to content

zhaocrazy/laravel-ubuntu-installer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 95.7%
  • Smarty 4.3%