Création d'un cgi-bin exécutable sous linux

Création d'un cgi-bin exécutable sous linux - C - Programmation

Marsh Posté le 13-12-2005 à 21:58:58    

Bonjour
 
J'aimerais créer un cgi-bin qui serait exécuté par Apache sous Linux.
Pour développer sous Windows j'ai l'habitude de DevC++.
J'aimerais savoir comment je peux compiller des cgi-bin pour Linux? :??:
 
Merci :hello:

Reply

Marsh Posté le 13-12-2005 à 21:58:58   

Reply

Marsh Posté le 13-12-2005 à 22:43:34    

gcc -Wall -o ton_executable.cgi ton_source.c

Reply

Marsh Posté le 14-12-2005 à 01:23:24    

manatane a écrit :

gcc -Wall -o ton_executable.cgi ton_source.c


Et tu mets ton pgm dans le répertoire "cgi-bin" de ton serveur Apache (généralement "/var/httpd/cgi-bin" )

Reply

Marsh Posté le 14-12-2005 à 01:41:41    

Sve@r a écrit :

Et tu mets ton pgm dans le répertoire "cgi-bin" de ton serveur Apache (généralement "/var/httpd/cgi-bin" )


ou alors tu configures ton apache pour que ton programme soit vu comme du CGI, le répertoire cgi-bin say le mal :o
 
(et chez moi, c'est /var/www )


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 15-12-2005 à 16:37:43    

tout marche impécable dans le répertoire cgi-bin ;)
 
merci :hello:

Reply

Marsh Posté le 15-12-2005 à 16:42:28    

XK a écrit :

tout marche impécable dans le répertoire cgi-bin ;)
 
merci :hello:


 
[:un flip par boobax]

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed