nginx 1.13.8 mainline

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
635
how to get this added to custombuild? tried using version number but doesn't download.
 

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
435
Location
Arnhem, NL
Not all mainline versions are added to CustomBuild ( http://files1.directadmin.com/services/custombuild/ , sort by recents), I don't know why. I just always do this;

- wget the nginx-1.13.8.tar.gz file from the nginx website to /usr/local/directadmin/custombuild
- Edit custom_versions.txt with the correct version number
- ./build update
- Verify with ./build versions of the update is recognized
- Then finally do ./build nginx
 

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
635
I will try that, thanks much.
do any addon modules (like --with-mp4, etc) carry over?
 

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
435
Location
Arnhem, NL
If you have any configuration files in /usr/local/directadmin/custombuild/custom/nginx/, yes.
 

ps4all

Verified User
Joined
Oct 21, 2008
Messages
8
Maybe this thread and post might be useful to you?

You only have to change the version from 1.9.11 to 1.13.8 and follow the steps mentioned there.

Using this for quite some time now and it works like a charm.
 

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
635
If you have any configuration files in /usr/local/directadmin/custombuild/custom/nginx/, yes.
cool
Maybe this thread and post might be useful to you?

You only have to change the version from 1.9.11 to 1.13.8 and follow the steps mentioned there.

Using this for quite some time now and it works like a charm.
I actually just came across that thread and was going to follow it when I have a chance, thanks
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,893
Location
GMT +7.00
You could even use this way to update nginx:



Code:
cd /usr/local/directadmin/custombuild/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/nginx/build_nginx -O /usr/local/directadmin/custombuild/build_nginx
chmod 755 ./build_nginx
./build_nginx
A script to install a mainline version of NGINX with custombuild2. A version number of NGINX mainline is taken from NGINX's trac site.

Usage:

./build_nginx versions - to update information of available mainline version
./build_nginx install - to download and install the latest mainline version
 

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
635
iirc I saw that on your webpage and was also looking at it, thanks
 

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
635
You could even use this way to update nginx:



Code:
cd /usr/local/directadmin/custombuild/
wget https://raw.githubusercontent.com/poralix/directadmin-utils/master/nginx/build_nginx -O /usr/local/directadmin/custombuild/build_nginx
chmod 755 ./build_nginx
./build_nginx
A script to install a mainline version of NGINX with custombuild2. A version number of NGINX mainline is taken from NGINX's trac site.

Usage:

./build_nginx versions - to update information of available mainline version
./build_nginx install - to download and install the latest mainline version
that...was so darned simple it should be outlawed LOL
seemed to work very well and took literally 2 minutes max
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,893
Location
GMT +7.00
It's even possible to run a crontask:

Code:
echo "1 2 * * * root /usr/local/directadmin/custombuild/build_nginx cron" >> /etc/cron.d/directadmin_custom
if you want to update a version every day. It won't upgrade nginx, but only update information about its version and download a tar.gz file when a new version is available.

As soon as a new version of nginx comes out and its binary is downloaded you can use custombuild native script as usual to install/update nginx.

Code:
./build nginx
or

Code:
./build update_versions
or stick to the custom script.

Code:
./build_nginx install
 

dmacleo

Verified User
Joined
Jun 21, 2012
Messages
635
will this also work of I am using nginx as rev proxy?
I can't see any reason it would not, but am experimenting with some configs on my end to apply to someone eleses server so am curious.
 

ayeweb

Verified User
Joined
Nov 27, 2016
Messages
61
So much useful with reply of zEitEr.
Thank you, I will try to run update today soon possible.
 
Top