HelioHost Posted December 4, 2017 Posted December 4, 2017 Username: vnabokit, Server: Johnny, Main domain: vnabokit.heliohost.org Hi,I use free hosting from heliohost.org.Your service is pretty nice.I appreciate you give ability to try good service first before ask aboutmoney. My question:Is it possible to run .exe files? What I did.1. Opened CPanel/Advanced/Apache Handlers and added a new handler:"cgi-script" under *Handler* and ".exe" under*Extension.*2. Copied simple helloworld exe file to ./public_html/cgi-bin/hello.exe3. Waited about 15 minutes.4. Tried to run it by "https://vnabokit.heliohost.org/cgi-bin/hello.exe".Actual Result: 500 Internal Server Error error was encountered. If the setting is correct and you confirm it, I will try to find an errorin the helloworld code. It is my first application on GoLang language. Thank you!Volodymyrlogin: vnabokit
Krydos Posted December 4, 2017 Posted December 4, 2017 Generally extensions mean basically nothing on Linux. On Windows extensions mean everything. Since you're using .exe I'm going to guess that it's a windows executable? Am I right? In order to run a windows executable on Linux you're going to need wine or some other type of Windows emulator. If you have the source code for the executable it may be possible to compile it for Linux though.
HelioHost Posted December 5, 2017 Author Posted December 5, 2017 Hi, Yes, you are right. The .exe file was compiled on windows os. The source code is written on GoLang. So yes, I have access to source code. Can you suggest Which requirements should have an executable cgi binary file on heliohost hosting? Such file should be able to run from http. Thank you for answering. It is helpful. Volodymyr. 04.12.2017 23:26, Heliohost Support ?????:> Generally extensions mean basically nothing on Linux. On Windows extensions mean everything. Since you're using .exe I'm going to guess that it's a windows executable? Am I right? In order to run a windows executable on Linux you're going to need wine or some other type of Windows emulator. If you have the source code for the executable it may be possible to compile it for Linux though.>> You may view the status of your ticket by visiting:>> https://www.helionet.org/index/index.php?showtopic=30772>> Thank you,> Heliohost support> https://www.heliohost.org/> https://www.helionet.org/>>
Krydos Posted December 5, 2017 Posted December 5, 2017 Check out http://wiki.helionet.org/C%2B%2B/C_as_CGI Does that help?
HelioHost Posted December 6, 2017 Author Posted December 6, 2017 Thank you! The link is very useful. As I understood, it is not allowed upload the ready binary file to cgi-bin directory and then change permissions to 755? That is because I code on GoLang. Default gcc compiler does not support compilation of *.go files. Thanks a lot again, your answers are pretty helphul! Volodymyr. 05.12.2017 16:44, Heliohost Support ?????:> Check out http://wiki.helionet.org/C%2B%2B/C_as_CGI Does that help?>> You may view the status of your ticket by visiting:>> https://www.helionet.org/index/index.php?showtopic=30772>> Thank you,> Heliohost support> https://www.heliohost.org/> https://www.helionet.org/>> It seems I was wrong. "The GCC 6 releases include a complete implementation of the Go 1.6.1 user libraries."https://golang.org/doc/install/gccgo Which version of GCC "Johnny" server does use? 05.12.2017 16:44, Heliohost Support ?????:> Check out http://wiki.helionet.org/C%2B%2B/C_as_CGI Does that help?>> You may view the status of your ticket by visiting:>> https://www.helionet.org/index/index.php?showtopic=30772>> Thank you,> Heliohost support> https://www.heliohost.org/> https://www.helionet.org/>>
Krydos Posted December 6, 2017 Posted December 6, 2017 You can upload a "ready" binary if you want, but the build environment is going to have to be very similar if not identical to the server you're running it on. Otherwise it probably won't work.
HelioHost Posted December 6, 2017 Author Posted December 6, 2017 How can I know about build environment? I tried to find this answer by query "heliohost build environment gcc" in the google but nothing interesting was found. Thank you, Volodymyr. 06.12.2017 17:39, Heliohost Support ?????:> build environment
Krydos Posted December 6, 2017 Posted December 6, 2017 My point is, as it explain in the wiki link http://wiki.helionet.org/C%2B%2B/C_as_CGI, that you should compile it on the server you wish to run it on.
Recommended Posts