macOS Server 5.2 is Not Quite Ready for Prime Time
On El Capitan, macOS Server 5.2 wants a mismatching PHP component, and on Sierra, 5.2’s PHP configuration is ignored by the operating system. If you really have to run 5.2 on Sierra, here’s a hacky fix.