Question

installing Nginx 1.4.4 on Debian Wheezy OS

  • Posted on January 29, 2014
  • FMCBAsked by FMCB

Hi mates,

I’m having hard time trying to find a good or well-documented procedure on how to install nginx v.1.4.4

I found some tut, but it seems there are some issues when it comes to debugging…

https://www.digitalocean.com/community/articles/how-to-add-ngx_pagespeed-module-to-nginx-in-debian-wheezy

I followed the tut above to get the right version 1.4.4, but couldn’t.

is there a straight forward process to reach that without extra headache??

Thanks


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

WVBVF8N9°JI O…P+°PµOOL.JUYFTV °OM°0RE/ 7µ¨µ§%¨K

v.important note: in step 7, I mentioned “then change it to anything like this 1.4.4-1~bpro70+1_sms” <br> <br>underscore is not allowed, so you can use hyphen instead.

I finally found the solution to my issue… and this is the procedure just in case if someone run into such problem: <br> <br>1- Edit the sources list: sudo nano /etc/apt/sources.list <br>add the following based on your OS, mine is Debian Wheezy::: <br>deb http://ftp.uk.debian.org/debian wheezy-backports main <br>deb-src http://ftp.uk.debian.org/debian wheezy-backports main <br> <br>Ctrl+X and push y to save the work. <br> <br>2- update your resources: sudo apt-get update <br> <br>3- install some packages that you need to the upgrade::: <br>sudo apt-get install dpkg-dev build-essential zlib1g-dev libpcre3 libpcre3-dev unzip <br> <br>4- sudo apt-get -t wheezy-backports build-dep nginx <br> <br>5- create a folder for the latest nginx packages: mkdir custom-nginx-1.4.4 <br>go inside the dir where you created it::: cd custom-nginx-1.4.4 <br> <br>6- download the pkge::: sudo apt-get -t wheezy-backports source nginx <br> <br>7- change the log version in the log file::: sudo nano ~/custom-nginx-1.4.4/nginx-1.4.4/debian/changelog <br> <br>e.g::: originally like this 1.4.4-1~bpro70+1, then change it to anything like this 1.4.4-1~bpro70+1_sms <br> <br>save your file and exit <br> <br>8- enter to the main folder of nginx::: cd ~/custom-nginx-1.4.4/nginx-1.4.4 <br>then build the pkge::: sudo dpkg-buildpackage -b <br> <br>9- when the build up finished, enter these command line::: <br>sudo dpkg -i nginx-full_1.4.4-1~bpo70+1-sms_amd64.deb nginx-common_1.4.4-1~bpo70+1-sms_all.deb nginx_1.4.4-1~bpo70+1-sms_all.deb <br> <br>10 run::: sudo apt-get -f install <br> <br>and you are done. you can check the version of you nginx using this command::: nginx -v or nginx -V <br> <br>These steps are based on the tut here: https://www.digitalocean.com/community/articles/how-to-add-ngx_pagespeed-module-to-nginx-in-debian-wheezy <br> <br>Good luck <br> <br>