Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/07/2005, 20:19
nostradamus
 
Fecha de Ingreso: junio-2005
Ubicación: Cali - Colombia
Mensajes: 21
Antigüedad: 18 años, 10 meses
Puntos: 0
Configurar CGI (hola mundo)

hola,


habia empezado con php y ahora quiero ver el funcionamiento de los cgi's

he instalado elpaquete Abriamerlin(apache-php-perl--), y cuando pongo mi cgi hola mundo me sale lo siguiente:


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected]ess 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.


esta el la ruta de mi localhost: http://127.0.0.1/cgi-bin/hola.cgi


y este le codigo de hola.cgi:


int main(){

printf("Content-Type: text/html\n\n");
printf("<html>Hola Mundo</html>\n");

return ( 0 );

}