Loading Now
×

Php updates got failed error in direct admin

Php updates got failed error in direct admin

Php updates got failed error  Here in this post how to resolve and fix the error while updating php version in direct admin server.

If the error is

install_php: failed to compile '/usr/local/directadmin/custombuild/cache/php-8.1.29

Maybe its an good start with deleting absolute files in usr/local (backup first !)
Removing absolute or old install made by custombuild in the past gave me lot of build problems, after cleaning them make worked as it should

Than you can do the following steps to resolve the issue.

Php updates got failed error

Login to direct admin server as root in SSH,

Goto

cd /usr/local/directadmin/custombuild

Build update,

./build update
./build versions

To remove the list of old build updates

./build list_removals
./build remove_items
./build remove_old_local libiconv

Now do the build  all

./build all d

This will build the server all configurations including apache ,mysql and all other system packages.

It took some more time depends on sever configuration ,all packages are updated.

Now the error was resolved and you can see the php version in direct admin panel.