Skip to content

Instantly share code, notes, and snippets.

@0xDaksh
Last active November 7, 2017 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xDaksh/a1d980d62ac41147e22ca518fe991355 to your computer and use it in GitHub Desktop.
Save 0xDaksh/a1d980d62ac41147e22ca518fe991355 to your computer and use it in GitHub Desktop.
How to Setup Lemp (Linux Nginx MySQL Php) with Node.js and Forever on Ubuntu 16.04 Easily?

How to Setup Lemp with Node.js Easily!

Firstly, Download the Script Using:

curl https://dak.sh/nginxsetup.sh -o setup.sh

After that, you'd have to run the file and for that you need to make the script an executable:

chmod +x setup.sh

Once done, now you have to run it:

If you want to completely setup the server, use this command:

sudo ./setup.sh -d yourprimarydomain.com -s complete

Once you're done, you can add more domains using:

sudo ./setup.sh -d yourseconddomain.com -s partial

Partial Setup Can be done using:

sudo ./setup.sh -d domain.com -s partial

License

Copyright (c) Daksh Miglani, Licensed to MIT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment