The Civet server is located in the directory SERVER of your DBFree installation. The 32 bit version is called civetweb32.exe and the 64 bit version is called civetweb64.exe. Most computers these days are 64 bit but the 32 bit version works fine on all computers.

Starting and stopping the server in Windows

You can start and stop the server with the DBFree Control center or directly with /SERVER/start.bat and /SERVER/stop.bat.

Starting and stopping the server in Linux

If you followed the installation instructions in this manual you can directly start the server through Wine with civetweb32.exe with the Linux terminal.

The listening port of the server

If you want to change the default listening port where DBFree operates from the default port 8088 to the standard HTTP port 80 you must manually edit the Civet configuration file. This embedded server can work with multiple ports.

  • From the Control Center click on the link Advanced settings
  • You can edit the configuration file from there and this will open the Civet configuration file in your default text editor (usually notepad.exe)
  • You can also manually edit the file civetweb.conf in the directory SERVER of your DBFree installation.
  • Once the file is open browse the text to locate the line listening_ports
  • Edit the value and put the number of the port you want to use in place of the current one. In fact we suggest to simply add port 80 to existing 8088: this makes things easier because some code example may get confused by this change.
  • This is how the line should look like after editing: listening_ports 8088 80.

Run the server as a Windows Service

While DBFree works great for development, there are some situations where it would be more useful to start it even before you log in to the PC. To do this, you will need to run the app as a Windows service. Just right-click on the Civet Icon in the system tray and choose Run as a service.