FMS 15 - CWP with PHP

Discussion created by garrycl on Feb 22, 2018
Latest reply on Feb 25, 2018 by garrycl

We have FMS 15 on OSX. I am trying to setup for CWP with PHP.


We have an existing Apache server and PHP applications at /Library/WebServer/Documents. Hence, I copied the "FM_API_for_PHP_Standalone" folder contents to the root of this existing web server.


Using a simple PHP script for testing:




$fm = new FileMaker();

$fm->setProperty('database', 'HAL_2_0');

$fm->setProperty('hostspec', '');

$fm->setProperty('username', 'WebuserPHP');

$fm->setProperty('password', 'webuser123');

echo $fm->_impl->getAPIVersion() . "<br>";

$databases = $fm->listDatabases();

echo $databases->message . "\n\r";





However, I am receiving this error message:

"Communication Error: (22) The requested URL returned error: 404 Not Found - This can be due to an invalid username or password, or if the FMPHP privilege is not enabled for that user."


The user exists and has the fmphp extended privilege. CWP with PHP is enabled and passes the tests from the FMS Admin console.


OS X Sierra 10.12.5

PHP version: 5.6.30

curl 7.47.1


Any thoughts?


Thank you.