Switching web servers in Linux

FileMaker Server installs both the Apache and Nginx web servers during the FileMaker Server installation. Nginx is set as the default web server for Linux, but can be changed using the following steps:

Switch to Apache

To switch to Apache, create an empty file called UseHttpd in the Nginx configuration directory, then restart the FileMaker Server services:

  1. Change the directory to the Nginx configuration directory:

    cd /opt/FileMaker/FileMaker\ Server/NginxServer

  2. Create the UseHttpd file:

    sudo touch UseHttpd

  3. Stop FileMaker Server processes:

    sudo service fmshelper stop

  4. Restart FileMaker Server processes:

    sudo service fmshelper start

  5. Verify that Apache is running:

    ps -A | grep apache

Switch to Nginx

To switch to Nginx, remove the UseHttpd file in the Nginx configuration directory, then restart the FileMaker Server services:

  1. Remove the UseHttpd file:

    sudo rm /opt/FileMaker/FileMaker\ Server/NginxServer/UseHttpd

  2. Stop the FileMaker Server processes:

    sudo service fmshelper stop

  3. Restart FileMaker Server processes:

    sudo service fmshelper start

  4. Verify that Nginx is running:

    ps -A | grep nginx