❤️ AZDIGI has officially updated to a new blog system. However, some posts may have incorrect or mismatched images. Please click the Report article button at the bottom of the post so AZDIGI can update as quickly as possible. Thank you!
Introduction
Today I encountered an error case on a customer’s VPS as follows, when I use any ./build command, I get a syntax error: unexpected end of the file. Research on the DirectAdmin forum shows that the build file causes this error at /usr/local/directadmin/custombuild/build of Directadmin with incorrect or missing characters, leading to the system reporting incorrect syntax and not executing the build command.
- You can see the article in Forum DirectAdmin: Here .
In this article, I will show you how to fix it very simply. Please see the next step.
Handling Instructions
To fix this problem, you must download the build file from the Directadmin server and overwrite the build file in your VPS. To download, you just need to run the command below
wget -O /usr/local/directadmin/custombuild/build http://files1.directadmin.com/services/custombuild/2.0/custombuild/build
And here are my results. As you can see now, I can use the build command usually.

Wishing you success.
You can refer to other user manuals at the link below
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
You might also like
- Fix Fatal error: PCRE is not compiled with UTF-8 support on DirectAdmin
- [Fix] [Fix] Invalid command UNIT_PROXY Apache 2.4.48 DirectAdmin
- Fix "Requested icu-uc 50.1 but version of icu-uc is" error on DirectAdmin
- How to change DirectAdmin download server
- Fix Roundcube Database Error on DirectAdmin
- How to fix the error: Request body no files data length is larger on DirectAdmin
About the author
Thạch Phạm
Đồng sáng lập và Giám đốc điều hành của AZDIGI. Có hơn 15 năm kinh nghiệm trong phổ biến kiến thức liên quan đến WordPress tại thachpham.com, phát triển website và phát triển hệ thống.