Hello,
Can I install an API built with West Wind Web Connection that runs on IIS on a Linux server? Can it be executed through Wine, or should I set it up in a virtual machine, or is there another option? I’d like to know the most optimal solution to ensure the API runs quickly, as it will receive many requests.
Web Connection ships with a .NET Core Web Server that can run on Linux - you can run it behind nginX or Apache using a reverse proxy, or directly on port 80/443 if you don't need port sharing.
This works for the Web connector piece, but FoxPro still has to run on Windows - unless you can get it to run on Wine - not sure about that however, have never tried that.
You can play around with the Web Server Connector bits on Windows with WSL to see the server running in Linux.
I don't have explicit instructions for running on Linux, but basically you'll need:
- Install the .NET Runtime
- Install the ASP.NET Runtime
- or (instead of those) install the .NET SDK
You can then directly run the Web Connection server from the command line or shell script:
dotnet run WebConnectionWebServer
I'm just double checking that now and to work you'll need an update from WebConnectionExperimental - there are a few dependencies that were missing for running on Linux.
https://west-wind.com/files/WebConnectionExperimental.zip
All that said, it's not trivial to get this to work in this setup. Some customization is needed to ensure that files are found, paths are resolved and there are issues with Authentication for the admin interface which depends on NTFS/Negotiate which isn't available on linux to resolve users.
For API's this is much less of an issue as you typically don't need to retrieve HTML related assets like templates etc.
If you want to try this out, post here and I can help you get it going...
+++ Rick ---