This script is for installing a Laravel environment on Ubuntu.
Please make sure you are running as root
!
- 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.
Also, you can install any version of node / php by inputting the version of them.
wget -qO- https://raw.githubusercontent.com/dengsihan/laravel-ubuntu-installer/main/download.sh - | bash
- Add A New Site
./scripts/nginx_add_site.sh
- Add A New MySQL user & database
./scripts/mysql_add_user.sh
- Run script as
www-data
sudowww 'php artisan config:cache'