Nội dung
In this tutorial, AZDIGI will guide you through upgrading nghttp2 on DirectAdmin with CustomBuild 2.0. This will help the HTTP/2 protocol on your server work better.
I. What is Nghttp2?
Nghttp2 is a C library aiming to implement the HTTP/2 protocol for web servers. Ng here means next generation.
With the development of information technology today, we have the latest HTTP/3 protocol. However, with the popularity and widespread use of HTTP/2, upgrading the Nghttp2 library versions will help your web server work more efficiently, increase security, and improve the use of resources.
We can follow the following link to see the changes of each Nghttp2 library version.
So you have some more information about Nghttp2, and in this article, AZDIGI will show you to upgrade Nghttp2 on DirectAdmin to the latest version.
II. Upgrade nghttp2 on DirectAdmin
To upgrade nghttp2 on DirectAdmin, follow these 3 steps.
Step 1: SSH into your DirectAdmin system
To upgrade nghttp2 on DirectAdmin, we first need to SSH or access your VPS/server with root privileges. If you do not know how to SSH into your VPS/Server, you can refer to the following tutorial:
After successfully SSHing, we continue with step 2 to check the version of Nghttp2 in use and the latest version at the present time.
Step 2: Check the version of Nghttp2 you are using and the latest version can be upgraded
After SSH is successful, we use the following command to check the version of Nghttp2 in use on the server and the latest version is upgradable:
sh /usr/local/directadmin/custombuild/build versions | grep nghttp
Here is my result. Below are my results, you can see the nghttp2 version in use is 1.41.0, upgradable version is 1.42.0.
After knowing that the version we are using is the old version, we can continue to step 3 to upgrade nghttp2 on DirectAdmin.
Step 3: The nghttp2 upgrade commands on DirectAdmin
To upgrade nghttp2, we need to execute the commands:
cd /usr/local/directadmin/custombuild ./build update ./build nghttp2
Explanation of the above commands:
- Command 1: Move to custombuild folder.
- Command 2: Update custombuild script.
- Command 3: Upgrade Nghttp2 to the latest version.
Below is the image after you run command 3 complete.
You can then recheck the Nghttp2 version with the same command as in step 2.
sh /usr/local/directadmin/custombuild/build versions | grep nghttp
And here are my results:
So we have finished upgrading nghttp2 on DirectAdmin. with CustomBuild 2.0.
III. Summary
With only 3 basic steps, we have completed the nghttp2 upgrade on DirectAdmin. Upgrading the services on the server will help your server operate more and more stably, thereby solving many problems that may arise in the future.
Hope this article will be of help to you. Wishing you success!
See more useful articles about DirectAdmin at the following link:
If you need assistance, you can contact support in the ways below:
- Hotline 247: 028 888 24768 (Ext 0)
- Ticket/Email: You use the email to register for the service and send it directly to: support@azdigi.com .