Enabling CWP on FileMaker Server 17+

CWP, FileMaker, PHP

Enabling CWP on FileMaker Server 17+

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!

So here’s what you need to do if you want to enable both PHP and XML.

fmsadmin SET CWPCONFIG ENABLEXML=true
fmsadmin SET CWPCONFIG ENABLEPHP=true
fmsadmin RESTART WPE

And you should now be ‘good to go’. You can check the status of the CWP config using fmsadmin GET CWPCONFIG which will return something like this:

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!

Leave A Comment

*
*