The user
Active8 posted a command which should be executed after an OS upgrade, see the post
#22
Not only PHP but all software managed by DirectAdmin should be re-installed after the upgrade of a major OS version.
Thanks both
@Active8 and
@zEitEr for clarifying!
Just to explain my situation a bit better — I’m running a personal DirectAdmin setup with LiteSpeed, Imunify360, and custom PHP builds (8.3 / 8.4).
Mail services like Exim/Dovecot/Rspamd are completely disabled, because my domains use external MX records (Namecheap).
The server is fully updated, CSF/firewalld disabled, and everything works perfectly on AlmaLinux 9.
My main goal after upgrading from AlmaLinux 9 → 10 via ELevate is to keep all configurations and integrations exactly the same, without doing a full rebuild of every component.
That’s why I was thinking of just running these after reboot:
cd /usr/local/directadmin/custombuild
./build update
./build php n
./build rewrite_confs
This should only recompile PHP and refresh configurations with the new system libraries — no reset, no configuration loss.
From what I understand,
build all d would indeed rebuild everything (including mail services I don’t use),
while build php n + rewrite_confs is enough to safely re-link PHP/LiteSpeed with AlmaLinux 10.
So I just wanted to confirm that in a non-mail, LiteSpeed-based personal setup, doing a light rebuild like this should be perfectly fine and safer than a full “build all d”.
Thanks again for your guidance — this discussion helped clear up the differences between “rebuild” and “reset” after an OS upgrade!
