Welcome! Log In Create A New Profile

Advanced

How to install module for Nginx when previous installed with YUM?

Posted by janton 
How to install module for Nginx when previous installed with YUM?
May 10, 2012 01:02PM
Hello All,

I want to add two modules to my nginx :
https://github.com/gnosek/nginx-upstream-fair
http://wiki.nginx.org/HttpUploadProgressModule

I previously installed nginx very simple with YUM like this:

Create the file named /etc/yum.repos.d/nginx.repo with the following contents:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/5/$basearch/
gpgcheck=0
enabled=1


yum install nginx



But now I want to add these modules, i'm still new with linux.. so should I first delete the old nginx?

yum remove nginx

and then download the gid:
git clone https://github.com/gnosek/nginx-upstream-fair.git
git clone https://github.com/masterzen/nginx-upload-progress-module.git


and then reinstall with:

wget http://nginx.org/download/nginx-1.2.0.tar.gz
tar -zxvf nginx-1.2.0.tar.gz
cd nginx-1.2.0

./configure --with-http_ssl_module --add-module=/nginx-upstream-fair --add-module=/nginx-upload-progress-module
make
make install



Am I forgetting something? should i add --sbin-path=/usr/local/sbin ? or do i need to add more options? or could i install these modules a other way? When I remove with Yum remove nginx do i lose my nginx settings in /var/nginx (ofcourse i will back them before i run remove but always good to ask?)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 224
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready