tags:

views:

211

answers:

2

I have to migrate a web server from Windows + IIS to Linux + Apache, but there are some webpages rely on .exe CGI applications (some financial calculators) to generate the outputs. Is there an easy way to get this job done?

BTW, I don't have the access to the source code of those .exe file. Even though I have, it would take a long time to re-code them in PHP or other languages.

Edit: OK. I make my question more detailed. There is a form in a webpage whose action points to a .exe file. When the form is submitted, the .exe file generates results based on the HTTP GET data. The results that should have outputted to console are captured by the webserver to generate html.

Wine can do that job? I just googled but cannot find the solution.

+4  A: 

Maybe try Wine.

Yada
Fantastic! Wine did did the job perfectly!!
Ethan
A: 

You can install Wine on the Linux server. Wine can execute .exe files on the commandline. See http://ftp.winehq.org/pub/wine/docs/en/wineusr-guide.html#RUNNING-WINE .

On the webserver, you can then use CGI or PHP to execute the command.

Note that this may be very messy, and may have serious security or performance issues if you aren't careful.

Stefan Lasiewski