AnsweredAssumed Answered

Where to put CGI scripts for WebDirect FM Server 16?

Question asked by dhafitch on May 14, 2018

Where should I put .cgi files?


Specifically, I updated from Server 12 to Server 16, which now takes over the web serving functions as well as the database serving functions.  I am serving my FM Pro database using WebDirect.  There is one instance where I need to use a FM script (button) to open a separate browser window with a URL of a .cgi script.  This .cgi script does a bunch of searches and calculations and constructs results that the FM user can then select a poriton to paste back into the FM database.  (I know that sounds a little klunky, but it actually gives the best results.) 


This used to work in FM12 with IWP when the Mac's Web Server (OS Mountain Lion?) was being used to serve the HTML. In that older version, the CGI files were located in /Library/Server/Web/Data/CGI-Executables/ .


Where are CGI files supposed to be now?  I tried putting it into the httpsRoot directory, the HTTPServer directory, and the HTTPServer/bin folder, but none of these work.  The file IS accessible when I put it into the httpsRoot directory, but the browser just displays it as a simple text file instead of performing the script to construct the HTML and then displaying the HTML.


Your help is appreciated.