Nginx Autoinstaller is a ready made script to install a server with Nginx webserver, MySQL and PHP.
Default LNMP comes with Nginx 1.0.0, however LNMP-Nginx Autoinstaller provide a script to upgrade Nginx to latest available version.
Procedure:
- Check latest version number from nginx download page.
- Currently latest version is 1.2.2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
root@venus:~/lnmp0.8-full# ./upgrade_nginx.sh ========================================================================= Upgrade Nginx for LNMP, Written by Licess ========================================================================= LNMP is tool to auto-compile & install Nginx+MySQL+PHP on Linux For more information please visit http://www.lnmp.org/ ========================================================================= Current Nginx Version: nginx/1.0.10 Please input nginx version you want: You can get version number from http://nginx.org/en/download.html (example: 0.8.54 ):1.2.2 =========================== You want to upgrade nginx version to 1.2.2 =========================== Press any key to start...or Press Ctrl+c to cancel ============================check files================================== Error: nginx-1.2.2.tar.gz not found!!!download now...... --2012-07-22 13:58:16-- http://nginx.org/download/nginx-1.2.2.tar.gz Resolving nginx.org... 206.251.255.63 Connecting to nginx.org|206.251.255.63|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 722069 (705K) [application/octet-stream] Saving to: `nginx-1.2.2.tar.gz' 100%[===================================================================>] 722,069 --.-K/s in 0.06s 2012-07-22 13:58:16 (11.7 MB/s) - `nginx-1.2.2.tar.gz' saved [722069/722069] Download nginx-1.2.2.tar.gz successfully! ============================check files================================== nginx-1.2.2 nginx-1.2.2/contrib nginx-1.2.2/conf . . . |
It will take time to recompile Nginx and at the end will give you success message
1 2 3 4 5 6 7 8 9 10 11 12 |
Upgrade completed! Program will display Nginx Version...... nginx version: nginx/1.2.2 ========================================================================= You have successfully upgrade from nginx/1.0.10 to 1.2.2 ========================================================================= LNMP is tool to auto-compile & install Nginx+MySQL+PHP on Linux ========================================================================= For more information please visit http://www.lnmp.org/ ========================================================================= |
Here’s a good guide on how to update / install the latest stable or development Nginx webserver version on Ubuntu and Debian without having to compile from sources: http://usefulmix.com/install-upgrade-to-latest-nginx-without-compiling-from-source/