Possible solutions of your questions

  hosting
<< Previous       The CGI script

Question: Hello!Downloaded to the folder cgi-bin a simple script to test (written in C and compiled in gcc) and when you access that file in the browser, it generates an error 500. In the log says \"suexec policy violation\" error. I have all possible rights on the folder and the file is allowed, but it didn`t help. One of the recommendations to compile is that it is desirable to compile the scripts on those machines on which they will be implemented. It is possible to use the console remotely on your hosting? Or how can I solve the problem?
Answer:

Hello. what is the function of the script?

Question: Here is the entire code of the script:#include stdio.h int main(void) { int Num = 5; printf(\"Content-type: text/html\\n\"); printf(\"Pragma: no-cache\\n\"); printf(\"\\n\"); printf(\"htmlbody\"); printf(\"h1Hello!/h1\"); printf(\"Number = %d\", Num); printf(\"/body/html\");}
Answer:

have you checked his work somewhere else?

Question: Checked the only console that runs without error, and then filled to the hosting and then nothing happens. In the FAQ there was no response, and google did not answer anything specific.
Answer:

Give a link to the script and the path to it into account.

Question: http://cgi.zaitomart.ru/cgi-bin/script.cgiftp://ftp.zaitomart.ru:21//cgi.zaitomart.ru/cgi-bin/script.cgi
Answer:

please Wait.

Answer:

at http://cgi.zaitomart.ru/cgi-bin/script.cgi error 403

set the folder rights to 755 and for the file too.

file was uploaded in binary mode ?

Question: 403? Strange, I have 500 and gives this message:Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.More information about this error may be available in the server error log.Additionally, a 500 Internal Server Error error was encountered while trying to use an an ErrorDocument to handle the request.The file downloaded in normal mode, using the ftp client integrated in the development environment Coda 2.5. I always do and the problems had not arisen.Set the rights to 755 (777), but it didn`t help.
Answer:

now for 500

have you checked the output to the browser?

Question: In the developer dashboard in the browser any useful information there.Apparently, not fate.
Answer:

no, we had weidu have you checked this script anywhere else on the output in the browser?

Question: We can say that no. Local test server is apparently not configured to run cgi, when you call this file from a local server file just downloaded.Maybe you need something special .htaccess to prescribe?Or maybe you can write me C code that works on your hosting?
Answer:

the request sent to the administrator.

Question: Set up a local server for this user http://xamphyx.com/resources/guides/cgi-apache-mac/Теперь on the local server, CGI works and can confidently say that the script that I uploaded to the hosting is OK, at least on the local server it works perfectly.
Answer:

we passed a request to the developers panel

Answer:

please upload once again your script is just packaging it in a zip archive

Question: In the cgi-bin directory to put the archive with the source code and the compiled file.
Answer:

ok.

Answer:

utochnila developers, there is a small problem in the panel, now to resolve this issue.

Answer:

http://cgi.zaitomart.ru/cgi-bin/script.cgi

Question: Excellent!!! Thank you very much for the help!!!
Answer:

ok


<< Previous