Bonjour,
Comment configurer apache2 sous ubuntu , pour utiliser cgi , perl ?
y a t il un tutoriel détaillé ?
Merci
Version imprimable
Bonjour,
Comment configurer apache2 sous ubuntu , pour utiliser cgi , perl ?
y a t il un tutoriel détaillé ?
Merci
pour installer apache2: (vouz devez avoir de l'internet)
et pour perl :Code:sudo apt-get install libapr1 apache2 apache2.2-common apache2-utils
attention : assurez vous que le fichier perl existe bien dans le repertoir : /usr/bin/Code:sudo apt-get install perl
sinon : /usr/local/bin/
puis creer un fichier nommé "xxxx.pl" qui contient ce code pour tester :
#!/usr/bin/perl
# A simple perl program to print the user input
print ("Hello, type in something\n");
$inputline=<stdin>;
print ($inputline);
puis lancer le terminal et y taper :
et vous aurez ca comme reponse :Code:sudo perl dossier/.../xxxx.pl
Hello, type in something