Install Nginx 1.4.x on Debian 6 Squeezy 32-bit

This is my documentation how I install nginx 1.4.x on Debian Squeezy.

Note: before I installed nginx on debian squeezy I tried to install it to debian wheezy. But I don’t like that, not because debian wheezy itself, but because debian wheezy can’t install nginx 1.4.x.

That was the reason why I chose debian squeezy than wheezy. If the nginx 1.4.x has support debian wheezy, I just need to upgrade the OS.

Let’s begin!

First of all, make sure that the repository work well. Install python-software-properties

This software provides an abstraction of the used apt repositories. It allows you to easily manage your distribution and independent software vendor software sources. ->

Now, edit the /etc/apt/sources.list and add this following line

FYI, if you are using Ubuntu precise, add this

In order to pull nginx during installation or update from nginx repository, we need the key. Download the key and run it with this following code:

Now, to install nginx to Debian system we just run this code:

apt-get install nginx-extras or apt-get install nginx-full or apt-get install nginx.

To run, restart, or stop the service, run this code:

That’s it!

To verify what version of nginx that you have installed. Run this code nginx -v

What is the different between nginx-extras vs nginx-full vs nginx?

The different of that is the module package. The nginx extreas is the heavier and nginx is the lighter. You can check the details.

0 comments… add one

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.