Upgrade to latest nginx on Debian

By default, Debian 7 comes with nginx 1.2.x which is a little bit out-dated. This short tutorial will introduce how to upgrade to latest nginx on Debian.

First, add necessary wheezy-backports to the sources.list (/etc/apt/sources.list):

[bash]deb http://ftp.de.debian.org/debian/ wheezy-backports main contrib non-free[/bash]

Then, update with the new source:

[bash]aptitude update
aptitude -t wheezy-backports install nginx[/bash]

That’s all 🙂

Troubleshoots

  1. If there are errors regarding “W: There is no public key available for the following key IDs: “, install the following packages:
    [bash]aptitude install debian-keyring debian-archive-keyring[/bash]
  2. __

Similar Posts

  • Upgrading Percona XtraDB Cluster

    Guide can be found at https://www.percona.com/doc/percona-xtradb-cluster/5.7/howtos/upgrade_guide.html. There is no need to re-invent the wheel. I am too lazy to do it. Issue 1: If you are running mysql_upgrade and face the following error: “mysql_upgrade: [ERROR] 1136: Column count doesn’t match value count at row 1”, just do as follows: Clone https://github.com/mysql/mysql-sys and go to this folder. Run…

  • Load Testing with Locust

    You might be familiar with load testing tools such as Apache Benchmark (ab), siege, Apache JMeter and cloud services such as BlazeMeter, LoadImpact, Loader.io, etc. I tried many other tools, and found that there is no tool that completely satisfies me: ab and siege are too plain and simple without scenario, JMeter needs time for recording and defining cases…

  • Upgrade to PHP 7 on CentOS

    Well, PHP7 has just been released as you can read on the php.net website. Time to celebrate 🙂 So in this quick tutorial, I will note necessary steps to ugprade to PHP 7 on CentOS, assuming that you are using PHP with FPM with remi repo. Necessary steps are as follows: First, install yum-utils: [bash]yum…

  • OpenVPN installation quick tutorial

    Just a quick introduction for OpenVPN installation since there is a good work from https://github.com/Nyr/openvpn-install that helps install in 1-click. I just add some extra notes when installing as well as connecting for future references. First, run the one-step installation command: [bash]wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh[/bash] When installing, just remember to choose “1) Current system resolvers”…

Leave a Reply

Your email address will not be published. Required fields are marked *