I'm having the same problem after upgrading from Ubuntu 18.04 to 22.04, and in /usr/local/lsws/logs/stderr.log I see:
[STDERR] curl: try 'curl --help' or 'curl --manual' for more information
It seems the curl command being used to fetch the PHP sources is wrong or being misinterpreted by the...