开发者

Is there a way to execute a .exe CGI application on Linux + Apache

I have to migrate a web server from Windows + IIS to Linux + Apache, but there are some webpages rely on .exe CGI applications (some fin开发者_JS百科ancial 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.


Maybe try Wine.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜