FileMaker is in the process of moving away from the XML and PHP interfaces and replacing them with the FileMaker Data API. At the same time they’re also rebuilding the FileMaker Server admin console.
One of the casualties of this process is there’s now no way to enable or disable XML or PHP from the admin console. This leaves us with two options – the Admin API, or the fmsadmin CLI.
In this post I’m looking at using the later because that’s how were working towards automating the deployment of an FMS using Ansible – I’ll post more on that once we’ve got the process solid, right now there are a still a few kinks to iron out when deploying to Windows!
fmsadmin SET CWPCONFIG ENABLEXML=true fmsadmin SET CWPCONFIG ENABLEPHP=true fmsadmin RESTART WPE
EnablePHP = true EnableXML = true Encoding = UTF-8 [ UTF-8 ISO-8859-1 ] Locale = en [ en de fr it ja ] PreValidation = false UseFMPHP = true
If you wish to enable the FileMaker provided version of PHP (as shown above) use
fmsadmin SET CWPCONFIG USEFMPHP=true but given that FileMaker server is still shipping PHP 5.6 which reached end-of-life at the end of December 2018 and is no-longer supported (not even security fixes) you really, really, really shouldn’t be doing that!