502 appears after custombuy uses remove software

binyun

Verified User
Joined
Aug 24, 2021
Messages
15
After php7.0 is deleted by using remove software in custombuy, the

CustomBuild

Request failed with status code 502
No matter you click any button in custombuy, you will be prompted

CustomBuild

Request failed with status code 502
 
I tried to delete the directory of custombuild. What is the installation instruction of custombuild? I want to reinstall it
 
There must be at least 1 PHP version installed in directadmin. I'm not sure why you delete that.

Let say you only have 1 PHP version and you want to delete php7.0 and install 7.4, then you just need to run command belows:

Code:
/usr/local/directadmin/custombuild/./build php1_release 7.4
/usr/local/directadmin/custombuild/./build php1_mode php-fpm
/usr/local/directadmin/custombuild/./build php2_release no
/usr/local/directadmin/custombuild/./build php3_release no
/usr/local/directadmin/custombuild/./build php4_release no

/usr/local/directadmin/custombuild/./build update
/usr/local/directadmin/custombuild/./build php n
/usr/local/directadmin/custombuild/./build rewrite_confs

You will get a fresh new version of php 7.4 (the other PHP will be removed automatically).


and this is how you reinstall custombuild:

Code:
cd /usr/local/directadmin
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build all
 
There must be at least 1 PHP version installed in directadmin. I'm not sure why you delete that.

Let say you only have 1 PHP version and you want to delete php7.0 and install 7.4, then you just need to run command belows:

Code:
/usr/local/directadmin/custombuild/./build php1_release 7.4
/usr/local/directadmin/custombuild/./build php1_mode php-fpm
/usr/local/directadmin/custombuild/./build php2_release no
/usr/local/directadmin/custombuild/./build php3_release no
/usr/local/directadmin/custombuild/./build php4_release no

/usr/local/directadmin/custombuild/./build update
/usr/local/directadmin/custombuild/./build php n
/usr/local/directadmin/custombuild/./build rewrite_confs

You will get a fresh new version of php 7.4 (the other PHP will be removed automatically).


and this is how you reinstall custombuild:

Code:
cd /usr/local/directadmin
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build all
thank you
 
There must be at least 1 PHP version installed in directadmin. I'm not sure why you delete that.

Let say you only have 1 PHP version and you want to delete php7.0 and install 7.4, then you just need to run command belows:

Code:
/usr/local/directadmin/custombuild/./build php1_release 7.4
/usr/local/directadmin/custombuild/./build php1_mode php-fpm
/usr/local/directadmin/custombuild/./build php2_release no
/usr/local/directadmin/custombuild/./build php3_release no
/usr/local/directadmin/custombuild/./build php4_release no

/usr/local/directadmin/custombuild/./build update
/usr/local/directadmin/custombuild/./build php n
/usr/local/directadmin/custombuild/./build rewrite_confs

You will get a fresh new version of php 7.4 (the other PHP will be removed automatically).


and this is how you reinstall custombuild:

Code:
cd /usr/local/directadmin
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build all
After trying according to your method, the installation completion panel cannot be opened. Use the systemctl status directadmin.service command to see the information

directadmin.service - DirectAdmin Web Control Panel

Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor preset: disabled)

Active: failed (result: exit code) since 2021-08-31 20:19:35 CST; 7min ago

Docs: http://www.directadmin.com

Process: 48268 ExecStart=/usr/local/directadmin/directadmin (code=exited, status=203/EXEC)

Main PID: 48268 (code=exited, status=203/EXEC)

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: starting DirectAdmin web control panel

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: directadmin.service: main process exited,... EC

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: failed to start DirectAdmin web control panel

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: unit directadmin.service entered failed state

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: directadmin.service failed

Hint: Some lines were ellipsized, use -l to show in full.
 
After trying according to your method, the installation completion panel cannot be opened. Use the systemctl status directadmin.service command to see the information

directadmin.service - DirectAdmin Web Control Panel

Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor preset: disabled)

Active: failed (result: exit code) since 2021-08-31 20:19:35 CST; 7min ago

Docs: http://www.directadmin.com

Process: 48268 ExecStart=/usr/local/directadmin/directadmin (code=exited, status=203/EXEC)

Main PID: 48268 (code=exited, status=203/EXEC)

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: starting DirectAdmin web control panel

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: directadmin.service: main process exited,... EC

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: failed to start DirectAdmin web control panel

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: unit directadmin.service entered failed state

August 31 20:19:35 server. Ys666. Top SYSTEMd [1]: directadmin.service failed

Hint: Some lines were ellipsized, use -l to show in full.

Based on your question that you asked in post #2, that is how you reinstall custombuild as stated in official documentation: https://help.directadmin.com/item.php?id=555

and based on your post #1, that is how you switch PHP version without deleting them.

So, I think you might have misconfigured your server before following the method.

I tried to delete the directory of custombuild. What is the installation instruction of custombuild? I want to reinstall it

It is not common that people delete custombuild directory as you stated in your post. So you might need to reinstall directadmin to get the fresh custombuild binary. I actually have sent PM half an hour ago to guide you with no charge but I haven't received your reply.
 
Last edited:
Back
Top