Installing on Ubuntu using PPAs

Sofronio edited this page Jul 5, 2017 · 10 revisions

sudo apt-get install dpkg-dev

sudo apt-get source nginx

cd /usr/src/nginx

sudo git clone

cd nginx-[version-number]

sudo vi debian/rules

Edit the rules and at the end of the add-modules configuration string add --add-module=/usr/src/nginx/nginx-rtmp-module \

If installing for the first time build nginx dependencies.

sudo apt-get build-dep nginx

sudo dpkg-buildpackage -b

(wait for a while while it builds... a really long while... like you might want to go grab a meal)

cd .. && sudo dpkg --install nginx-common_1.3.13-1chl1~quantal1_all.deb nginx-full_1.3.13-1chl1~quantal1_amd64.deb

sudo service nginx status

sudo service nginx start if nginx isn't running.