Installing PHP for FileMaker 17

Updated: 03/29/2019
Article #: 2


https://fmhelp.filemaker.com/help/17/fms/en/index.html#page/FMS_Help/hostdb-phps.html

 

 

1) Install FmServer

2) enable PHP in command line- sudo fmsadmin set cwpconfig enablephp=true

3) Installing PHP for FileMaker Standalone

When you installed FileMaker Server, the FileMaker API for PHP package was included as a .zip file in the following location:

  • For IIS (Windows): drive:\Program Files\FileMaker\FileMaker Server\Web Publishing\FM_API_for_PHP_Standalone.zip

drive is the drive on which the web server component of your FileMaker server deployment resides.

  • For Apache (Mac OS): /Library/FileMaker Server/Web Publishing/FM_API_for_PHP_Standalone.zip

The FM_API_for_PHP_Standalone.zip file contains a file called FileMaker.php and a folder called FileMaker. Unzip the file and copy the FileMaker.php file and the FileMaker folder to either of these locations:

  • The web server root folder where your PHP scripts reside.
    • For IIS (Windows): drive:\Inetpub\wwwroot

    *drive is the drive on which the Web Publishing Engine component of your FileMaker server deployment resides.

    • For Apache (Mac OS): /Library/WebServer/Documents
  • One of the include_path directories in your PHP installation. The default location for Mac OS X is /usr/lib/php.

4) create a phpinfo.php page to test

5)get rid of index.html default page and replace with a index.php 

 

TEST PHP HERE-

http://localhost/fmi-test/phptest.php?lang=en

 

 


 







Rate this Topic:
Rating: 0.00 / Votes: 0