DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

The latest NGINX version on Directadmin server

| 14:44:31 06.03.2018

If you want to have the latest version of NGINX installed on your server with Directadmin here is what you can do about it.

We at Poralix prepared a script which you can use for it:

build_nginx - A script (the first edition) to install a mainline version of NGINX with custombuild2. A version number of NGINX mainline is taken from NGINX's trac site, i.e. it's always the latest.

Installation

Here is a quick way to install it:

cd /usr/local/directadmin/custombuild/
wget -O build_nginx https://raw.githubusercontent.com/poralix/directadmin-utils/master/nginx/build_nginx
chmod 755 ./build_nginx
./build_nginx

Crontask

It's even possible to run the script with a cron, on daily bases for example. Run this code to install a task into crontab:

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.

./build nginx

or 

./build update_versions

or stick to the custom script.

./build_nginx install

That's it.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.




All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition