Ładny brzuch
Witam
Mam do napisania program w C/C++ ktory ma dzialac jako skrypt CGI na serwerze. Jednak narazie mam problem nawet z najprostszym programem:
Kod:
#include <stdio.h> int main(void) { print("Content-type: text/html \n\n"); print("Witaj swiecie"); }
Efektem tego programu jest komunikat:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root(mapa)midas.slackware.lan and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.33 Server at dworo.olo.org Port 80
Skrypty perla i shelowe dzialaja poprawnie. Czy to wina konfiguracji serwera czy jednak ja cos w tak prostym programie sknocilem?? Jesli serwera to co musze zmienic w Apachu aby programy w C dzialaly poprawnie??
Za pomoc szczerze dziekuje
Tomasz Uss
// uzywaj tagow [ code ] i [ quote ] - m
Uytkownik migajek edytowa ten post 05 listopad 2005, 18:32
zanotowane.pl doc.pisz.pl pdf.pisz.pl zsf.htw.pl
Mam do napisania program w C/C++ ktory ma dzialac jako skrypt CGI na serwerze. Jednak narazie mam problem nawet z najprostszym programem:
Kod:
#include <stdio.h> int main(void) { print("Content-type: text/html \n\n"); print("Witaj swiecie"); }
Efektem tego programu jest komunikat:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root(mapa)midas.slackware.lan and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.33 Server at dworo.olo.org Port 80
Skrypty perla i shelowe dzialaja poprawnie. Czy to wina konfiguracji serwera czy jednak ja cos w tak prostym programie sknocilem?? Jesli serwera to co musze zmienic w Apachu aby programy w C dzialaly poprawnie??
Za pomoc szczerze dziekuje
Tomasz Uss
// uzywaj tagow [ code ] i [ quote ] - m
Uytkownik migajek edytowa ten post 05 listopad 2005, 18:32