Forum archive
Turnkey-Init-Fence active after Upgrade to PHP-8
I Installed PHP-8 following this german advice:
https://schroederdennis.de/allgemein/php-81-installieren-updaten-debian-...
After the installation I stumbled over Webmin not being accessible. After looking around I found turnkey-init-fence being active. Zhis also affects shellinabox. Disabling the service makes it function again.
Does anybody have an explanation why this happens?
Thanks, Birger
Can you please check your /etc/default/inithooks content? I'm especially interested in the value of 'RUN_FIRSTBOOT'. It should be 'false'. If it's 'true' then something went wrong when you first initialised your server!
FWIW the "init fence" is a service that intentionally blocks access to everything other than SSH. When you first log in, you should go through the first boot scripts, setting passwords, installing sec updates, etc (exact requirements depend on which appliance).
Towards the end of the firstboot run, '97turnkey-init-fence-disable' (/usr/lib/inithooks/firstboot.d/97turnkey-init-fence-disable) should disable the init-fence - essentially runs these commands:
My suspicion is that it is coincidental that you noticed it after updating PHP. If you rebooted the server after doing that, it may be that the initial run of the inithooks didn't complete successfully?