/c9-lemp

Up and running with NGINX + PHP7-FPM on Cloud9 workspaces

Primary LanguageShellGNU General Public License v2.0GPL-2.0

c9-lemp

This repo holds all the script, config files and commands you might want to use to set up a LEMP environment using NGINX and PHP-FPM instead the defaul Apache2 runner for PHP applications on Cloud9 workspaces.

Prerequisite

Setup a c9 workspace using the Apache, PHP5 and MySQL template

Usage

Run any of this commands straightaway on your c9 terminal.

curl -L https://raw.githubusercontent.com/GabrielGil/c9-lemp/master/install.sh | bash

wget -O - https://raw.githubusercontent.com/GabrielGil/c9-lemp/master/install.sh | bash

After completing this process your environment will be also provisioned with a simple command to start, stop and restart the whole stack in a brief:

  • lemp start // Starts NGINX and PHP
  • lemp stop

Updating

You can re-run this script as many times as you wish, just in case somting is updated.

Considerations

This is a quite simple script. It is just an easy way to configure your environment to be up and running with NGINX and PHP-FPM.

It does not override the default NGINX site configuration file, so you don't have to worry about loosing any data in case you had already modified yours.