Guest herberth Posted May 11, 2014 Posted May 11, 2014 Hello, My application is in Stivie server. I'm trying execute scripts C/C++ because in the register page of HelioHost and in the Wiki says that is allowed, but I always gets 500 (Internal Server Error) status. It's must compile on HelioHost? For I am compiling and then sending to the server and then running.
Guest herberth Posted May 11, 2014 Posted May 11, 2014 Are you giving permissions 755? Yes, I give permission 755 for both the cgi-bin directory as for the script.
Guest herberth Posted May 11, 2014 Posted May 11, 2014 Can you post your script? Here is my script of test: #include <stdio.h> int main(void) { printf("Content-Type: text/plain\n\n"); printf("Its working!"); return 0; } It compiles normally!
Byron Posted May 12, 2014 Posted May 12, 2014 This support request is being escalated to our root admin.
Krydos Posted May 14, 2014 Posted May 14, 2014 It's must compile on HelioHost?Well, it technically doesn't have to be compiled on Heliohost.For I am compiling and then sending to the server and then running.In order for this to work the system you are compiling the binary on must be exactly or at least reasonably identical to the server you intend to run the binary on. Since it's not working I'm guessing your compiling system is not close enough. Try compiling it on the server as the wiki instructs and let us know if that works any better for you.
Guest herberth Posted May 14, 2014 Posted May 14, 2014 It's must compile on HelioHost?Well, it technically doesn't have to be compiled on Heliohost.For I am compiling and then sending to the server and then running.In order for this to work the system you are compiling the binary on must be exactly or at least reasonably identical to the server you intend to run the binary on. Since it's not working I'm guessing your compiling system is not close enough. Try compiling it on the server as the wiki instructs and let us know if that works any better for you. Hello! I followed the instructions on the wiki, and it worked. What compiler, version and OS should I use to make it work. I don't want to be using Cron Jobs. Until that my account may be suspended for it. Thank you!
Krydos Posted May 15, 2014 Posted May 15, 2014 As long as you only compile once or twice a day you won't get suspended. If your run three or more cron jobs in a 24 hour period you could be suspended.
Recommended Posts