Ubuntu + NGINX + PHP5-FPM + Varnish Configuration


Ubuntu + NGINX settings for: wordpress + html5 + nodejs


Project maintained by @kruk_co aka lostin8 Hosted on GitHub Pages

HOW TO INSTALL FAST UBUNTU WEBSERVER (VARNISH, PHP5-fpm, NGINX,
multidomain, http & wordpress)



Step by step:


Additionally, I've added my 'reasonable speed and efficiency' optimizations for small (to medium) size servers (256mb to 2gb processor + 256mb to 3gb RAM).

It is compatible with Ubuntu (tested on 13.04, 13.10, 14.04 and 14.10), Debian (testing line)- but most of the work flow after carefully reading and adjusting can be adapted to any Linux web server installation scenario.

This is a cheat sheet I use every single time for my own purposes, when I'm setting up a production web server. As it is rather not exciting and time consuming task - I have decided to make a small repo with all those boring things as configs and steps - necessary to set things up and running.. without digging through various manuals, wikis, forums.

Usually I use cloud based virtual servers but it should* works just for any working web server based on Ubuntu.

* - Please use your own brain! And don't blindly copy and paste commands to your terminal - for your own safety.

FOLLOW INSTRUCTIONS FROM 'ubuntu command line' FILE.


'Ubuntu command line' file contains all console commands and instructions needed for complete installation.

You can also find there: NGINX, Varnish file examples.



How you should read files hierarchy:

 /   (root)

 |

   --> /etc

 |        |

 |         /etc/nginx

 |                     |

 |                      /etc/nginx/html (for 50.. sites)

 |                      /etc/nginx/sites-available (template configs for websites)

 |                      /etc/nginx/sites-enabled (enabled template configs)

 |

 --> /var

        |

        /var/www (here are the dragons)
        


GO TO GITHUB FILES