NGINX offers official PPA that comes with two options Mainline and Stable build. Stable builds are a bit older builds that have been tested to have rock solid stability compared to Mainline builds of NGINX. The Mainline build of NGINX can be also called development builds of NGINX, Mainline has more features than the Stable builds, Mainline is also not completely bug free, Mainline is only recommended if you want to use the latest and greatest version of NGINX for various reasons or to just to have the latest version.
I use a Stable version of NGINX on my production server and run the development or Mainline version of NGINX on my development server with the latest version of PHP.
Installing stable build (production server)
sudo apt-add-repository ppa:nginx/stable
Installing development build (local/testing/development) Don’t run in production
<code class="language- bash">sudo apt-add-repository ppa:nginx/development
Now we can update the local database.
<code class="language- bash">sudo apt-get update Now we can install NGINX
<code class="language- bash">sudo apt-get install nginx-full
<code class="language- bash">sudo /etc/init.d/nginx start
Now you can visit 127.0.0.1.
If you like this content, please consider buying me a coffee.Buy me a coffee
You will get access to contributer exclusive resources and content.