I do not test AllTalk in custom built Python environments and due to the complexity of different Python environments I cannot support them to any great extent, as there are far too many moving parts.
Install PHP in FPM mode and all required extensions. Below are instructions for PHP 8.x or PHP 7.x. DO NOT use PHP 8.1 as it contains critical bugs causing problems with parsing XML/HTML in some cases ...