Ver Mensaje Individual
  #10 (permalink)  
Antiguo 06/05/2005, 09:22
Avatar de Instru
Instru
 
Fecha de Ingreso: noviembre-2002
Ubicación: Mexico
Mensajes: 2.751
Antigüedad: 21 años, 6 meses
Puntos: 52
Bueno, volviendo a los CGIs.

Intente poner el siguiente programa(El famosisimo hola mundo)

int main()
{
printf("Content-Type: text/html\n\n");
printf("<html><body>Hola, mundo</body></html>\n");
return 0;
}

Asi lo vi en el tutorial, sin ninguna archivo de cbecera.

Lo compilo con DJGPP (gcc test.c -o test.cgi)
y despues pongo el cgi en el directorio CGI-BIN y me sale el siguiente error:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] 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.

Que tengo que configurar para que funcionen?

Saludos