Installare e configurare Debian edu (Skolelinux): differenze tra le versioni
Vai alla navigazione
Vai alla ricerca
Nessun oggetto della modifica |
|||
Riga 353: | Riga 353: | ||
=== Test spazio web e CGI degli utente === | === Test spazio web e CGI degli utente === | ||
'''Test web''' | |||
Creare una pagina indicedi prova: | |||
vi ~/public_html/index.html | |||
<HTML> | |||
<BODY> | |||
Prova web utente | |||
</BODY> | |||
</HTML> | |||
Test CGI | '''Test CGI''' | ||
Creare un nuovo file di prova hello.c | Creare un nuovo file di prova <code>hello.c</code> | ||
cd ~/public_html/cgi-bin/ | |||
vi hello.c | |||
#include <stdio.h> | |||
int main(void) | |||
{ | |||
printf("Content-Type:text/html\n\n"); | |||
printf("Hello World!"); | |||
return 0; | |||
} | |||
Compilarlo: | Compilarlo: | ||
$ gcc -o hello.cgi hello.c | |||
Eseguirlo sul server web: | Eseguirlo sul server web: | ||
http://www/~userid/cgi-bin/hello.cgi | |||
=== Installare un nuovo pacchetto per i fat client === | === Installare un nuovo pacchetto per i fat client === |