Welcome! Log In Create A New Profile

Advanced

ubuntu 8.04 user - upgrade to nginx latest

Posted by John Johnny 
John Johnny
ubuntu 8.04 user - upgrade to nginx latest
August 26, 2009 01:37AM
I didn't notice the aptitude install for 8.04 comes with the legacy
version 0.5.33 instead of the 6 or the 7 series.

I would like to use at least the 6 series for Ubuntu 8.04. 0.7.61 is
better of course.


Any experience ubuntu nginx user knows how to upgrade to the latest
nginx distribution without losing the data, the structure and the conf?

I looked around the net for a few days and no luck with this issue...

Thank you!
--
Posted via http://www.ruby-forum.com/.
Re: ubuntu 8.04 user - upgrade to nginx latest
August 26, 2009 01:03PM
I use these instructions for creating a new .deb based on the old deb and the new source:

http://ubuntuforums.org/showthread.php?t=1105902
Re: ubuntu 8.04 user - upgrade to nginx latest
August 26, 2009 04:47PM
Sorry, easiest thing to do since you're using 8.04 and not adding any extra modules is to add jeff waugh's ppa.

https://launchpad.net/~jdub/+archive/ppa

I recompile because I use the gzip_static_module.
Jeff Waugh
Re: ubuntu 8.04 user - upgrade to nginx latest
August 26, 2009 08:20PM
<quote who="brianmercer">

> Sorry, easiest thing to do since you're using 8.04 and not adding any
> extra modules is to add jeff waugh's ppa.
>
> https://launchpad.net/~jdub/+archive/ppa
>
> I recompile because I use the gzip_static_module.

Oh, I should fix my packages to build with it. Any time you want things like
this fixed, let me know. :-)

- Jeff

--
linux.conf.au 2010: Wellington, NZ http://www.lca2010.org.nz/

"Orphaned farm-boy hero helps save world against bad-guys, begins a
journey of self-discovery, and makes interesting friends. Passable." -
Andrew Bennetts on Star Wars
John Johnny
Re: ubuntu 8.04 user - upgrade to nginx latest
August 27, 2009 12:50PM
brianmercer wrote:
> Sorry, easiest thing to do since you're using 8.04 and not adding any
> extra modules is to add jeff waugh's ppa.
>
> https://launchpad.net/~jdub/+archive/ppa
>
> I recompile because I use the gzip_static_module.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,5177,5211#msg-5211

hi thank you for the help brian

I followed the launch guide there and a reference here

this is what i did

edit the sources.list (i am using the command line server)
add these lines

deb http://ppa.launchpad.net/jdub/ppa/ubuntu hardy main
deb-src http://ppa.launchpad.net/jdub/ppa/ubuntu hardy main


then i add public key (reference)
https://answers.launchpad.net/ubuntu/+source/nginx/+question/81021


this is the key from the jeff's ppa
[[[[
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.0.10

mI0ESeCyswEEALSCKRVVfkUR+IJjd9kS6X/OyLJJkCy5s+Hp7KflfxtEookCxYrcQnogaviy
aWtDffp4fBcQiBs4ok/WXTNfluScLxORGRRQGwWR3CYPI19ikFBuaS/0tt5CWTPQrd4RneO4
mX8N6isrj1KtCzajpocEeJtUXA/hs9RURljhfKd7ABEBAAG0HExhdW5jaHBhZCBQUEEgZm9y
IEplZmYgV2F1Z2iItgQTAQIAIAUCSeCyswIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheAAAoJ
EK379Cjp7vShGukD/1cu9eFY4gxMS/JrsCkkfdwbBUveP4XJ1lpIaay5XAURYSLsm4WyOhVF
wMRTEIMWzxOkkxScW+uCQCKcALextgeETnOnRYcsBN1t8K8LVUY43rrPm0mT5Z1+e7U+TDRz
NOqIhr8s1ymFtJurb7DTLyD7VFtjjWGNg583SWF5a+r5
=ssDr
-----END PGP PUBLIC KEY BLOCK-----
]]]]]
sudo add-key key2.txt
OK

then run
sudo apt-get update
sudo apt-get upgrade


i even tried this
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
12345678(replace 12345678 with his openGUL key)


after running update and upgrade - no update shows....
so where am i missing?
--
Posted via http://www.ruby-forum.com/.
Re: ubuntu 8.04 user - upgrade to nginx latest
August 27, 2009 03:33PM
That does sound correct. Try aptitude. (i.e. "sudo aptitude")

Search for nginx by hitting forward slash for the search box and typing nginx in the box and then press enter when your cursor is on the nginx line. That brings up a full page about the nginx package and lists the available versions at the bottom.

If it doesn't list the 7.61 version then you don't have the repository added correctly to the /etc/apt/sources.list file or didn't do "sudo aptitude update". ("aptitude" can be substituted for "apt-get" for most command line operations and can be more convenient) Even if you failed to add the authentication key correctly it should still work, it would just throw various warnings about untrusted sources.

If it lists both versions then you can select the 7.61 version and + it.
Re: ubuntu 8.04 user - upgrade to nginx latest
August 27, 2009 05:13PM
hi brian, thank you for the help, apparently we have to do it manually - via sudo aptitude search, then press U and G to install the upgradeable package

I see my nginx is now 0.7.6.1 - is there anything else i need to check to make sure everything is updated?

Thank you for the help - same things goes to Jeff's hard work making these packages.
Jeff Waugh
Re: ubuntu 8.04 user - upgrade to nginx latest
August 29, 2009 08:33AM
<quote who="brianmercer">

> Sorry, easiest thing to do since you're using 8.04 and not adding any
> extra modules is to add jeff waugh's ppa.
>
> https://launchpad.net/~jdub/+archive/ppa
>
> I recompile because I use the gzip_static_module.

My 0.8.11.1 packages are now built with gzip_static and geoip. :-)

- Jeff

--
linux.conf.au 2010: Wellington, NZ http://www.lca2010.org.nz/

"Not only that, but Google is fast. In fact, it's quite competitive
with DNS." - Raph Levien
John Johnny
Re: ubuntu 8.04 user - upgrade to nginx latest
August 29, 2009 02:32PM
Jeff Waugh wrote:
> <quote who="brianmercer">
>
>> Sorry, easiest thing to do since you're using 8.04 and not adding any
>> extra modules is to add jeff waugh's ppa.
>>
>> https://launchpad.net/~jdub/+archive/ppa
>>
>> I recompile because I use the gzip_static_module.
>
> My 0.8.11.1 packages are now built with gzip_static and geoip. :-)
>
> - Jeff

lol nice.... isn't 8 still on development?
--
Posted via http://www.ruby-forum.com/.
Re: ubuntu 8.04 user - upgrade to nginx latest
August 29, 2009 03:25PM
Igor's "development" is bastically as stable as anyone else's "stable"

On Sat, Aug 29, 2009 at 11:32 AM, John Johnny<lists@ruby-forum.com> wrote:
> Jeff Waugh wrote:
>> <quote who="brianmercer">
>>
>>> Sorry, easiest thing to do since you're using 8.04 and not adding any
>>> extra modules is to add jeff waugh's ppa.
>>>
>>> https://launchpad.net/~jdub/+archive/ppa
>>>
>>> I recompile because I use the gzip_static_module.
>>
>> My 0.8.11.1 packages are now built with gzip_static and geoip. :-)
>>
>> - Jeff
>
> lol nice.... isn't 8 still on development?
> --
> Posted via http://www.ruby-forum.com/.
>
>
Re: ubuntu 8.04 user - upgrade to nginx latest
August 29, 2009 04:02PM
> Oh, I should fix my packages to build with it. Any
> time you want things like
> this fixed, let me know. :-)
>
> - Jeff

Thanks Jeff.

And John, in case you didn't notice, Jeff has also backported the spawn-fcgi package that was split out this year and included in the karmic repos, so you don't have to install lighttpd and its dependencies to spawn php-cgi. That is if you're not up for patching php-fpm. Also appreciated, Jeff.
Jeff Waugh
Re: ubuntu 8.04 user - upgrade to nginx latest
August 29, 2009 05:32PM
<quote who="John Johnny">

> > My 0.8.11.1 packages are now built with gzip_static and geoip. :-)
>
> lol nice.... isn't 8 still on development?

Yes, 0.8.x is in my devel PPA, 0.7.x is in my normal PPA (named, uh, "ppa").
I do use 0.8.x versions on production machines though... Igor seems to enjoy
doing regular small-delta changes, keeping things pretty stable most of the
time :-)

- Jeff

--
linux.conf.au 2010: Wellington, NZ http://www.lca2010.org.nz/

"Love's such an old fashioned word." - Queen & David Bowie, Under
Presssure
Re: ubuntu 8.04 user - upgrade to nginx latest
October 05, 2009 09:14AM
Hi Jeff,

Thanks for packaging up nginx 8 for us like that.

My question is, how can I find out which modules have been compiled into nginx? (Specifically your 0.8.17 version.) I couldn't find any way to do this in the docs or via Google.

Cheers,

John :^P
Jeff Waugh
Re: ubuntu 8.04 user - upgrade to nginx latest
October 05, 2009 09:54AM
<quote who="synchromesh">

> My question is, how can I find out which modules have been compiled into
> nginx? (Specifically your 0.8.17 version.) I couldn't find any way to do
> this in the docs or via Google.

Unless there's a way to dump that information from the nginx binary itself
(which I haven't found), you can just look at the debian/rules file in the
source package.

You can click to download it from the PPA page or 'apt-get source nginx'
once you've added deb-src lines for my PPA to your sources.list (and I am
assuming this explanation will be understood by those using Debian-based
distros).

- Jeff

--
linux.conf.au 2010: Wellington, NZ http://www.lca2010.org.nz/

"I think it will be admitted by all that to have exploited so great a
scientific invention for the purpose and pursuit of entertainment
alone would have been a prostitution of its powers and an insult to
the character and intelligence of the people." - John Reith
Re: ubuntu 8.04 user - upgrade to nginx latest
October 05, 2009 11:00AM
Jeff Waugh wrote:
> <quote who="synchromesh">
>
>> My question is, how can I find out which modules have been compiled into
>> nginx? (Specifically your 0.8.17 version.) I couldn't find any way to do
>> this in the docs or via Google.
>
> Unless there's a way to dump that information from the nginx binary itself

# nginx -V
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-44)
configure arguments: --pid-path=/usr/local/nginx/logs/nginx.pid
--sbin-path=/usr/local/sbin/nginx --with-http_ssl_module
--with-http_stub_status_module --user=nginx --group=nginx

# nginx -h
nginx version: nginx/0.8.17
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]

Options:
-?,-h : this help
-v : show version and exit
-V : show version and configure options then exit
-t : test configuration and exit
-s signal : send signal to a master process: stop, quit, reopen,
reload
-p prefix : set prefix path (default: /usr/local/nginx/)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file



> (which I haven't found), you can just look at the debian/rules file in the
> source package.
>
> You can click to download it from the PPA page or 'apt-get source nginx'
> once you've added deb-src lines for my PPA to your sources.list (and I am
> assuming this explanation will be understood by those using Debian-based
> distros).
>
> - Jeff
>


--
Jim Ohlstein
Cecep Mahbub
Re: ubuntu 8.04 user - upgrade to nginx latest
October 05, 2009 11:02AM
On Mon, Oct 5, 2009 at 8:46 PM, Jeff Waugh <jdub@bethesignal.org> wrote:
> <quote who="synchromesh">
>
>> My question is, how can I find out which modules have been compiled into
>> nginx? (Specifically your 0.8.17 version.) I couldn't find any way to do
>> this in the docs or via Google.
>
> Unless there's a way to dump that information from the nginx binary itself
> (which I haven't found), you can just look at the debian/rules file in the
> source package.
>
> You can click to download it from the PPA page or 'apt-get source nginx'
> once you've added deb-src lines for my PPA to your sources.list (and I am
> assuming this explanation will be understood by those using Debian-based
> distros).

I think nginx -V should help.

===

nginx -h

nginx version: nginx/0.7.62
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]

Options:
-?,-h : this help
-v : show version and exit
-V : show version and configure options then exit
-t : test configuration and exit
-s signal : send signal to a master process: stop, quit, reopen, reload
-p prefix : set prefix path (default: /opt/nginx/)
-c filename : set configuration file (default: conf/nginx.conf)
-g directives : set global directives out of configuration file


Cecep
Re: ubuntu 8.04 user - upgrade to nginx latest
October 05, 2009 11:10AM
Great! Thanks everyone who replied.

The 0.6 version that Ubuntu provides was a lot less forthcoming from the command line than this new 0.8 version...

Cheers,

John :^P
Re: ubuntu 8.04 user - upgrade to nginx latest
June 18, 2010 07:35PM
I'm having trouble upgrading too, and would love some help.

I'm using Ubuntu Hardy, and tried the following:
1) Downloaded Jake's public key to a local file (my machine is behind a corp firewall and couldn't access keyserver directly)
2) Used apt-key to add the key to my machine (had to apt-get gnupg first)
3) Added Jake's URL to my sources.list file (it was under /etc/apt/sources.list.d)
4) Tried apt-get update
5) Tried apt-get install nginx, but I was told it's already up to date (with v0.5)

I tried following some of the other info on this thread, but I don't have aptitude installed and if I can get apt-get to do the same, I don't want to install it.
Re: ubuntu 8.04 user - upgrade to nginx latest
June 21, 2010 08:46PM
Ultimately I had to install aptitude and use it to point to the specific upgrade version. Now it's working with 0.7.62.

Thanks.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on July 14, 2010
Record Number of Guests: 235 on June 28, 2010
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by MySQL