bchs_tuto/cmd.txt
2016-12-18 12:14:35 +01:00

15 lines
799 B
Plaintext

cc -static -g -W -Wall -o build/vars vars.c
doas install -o www -g www -m 0500 build/vars /var/www/cgi-bin/
cc -static -g -W -Wall -o build/vars_kcgi vars_kcgi.c -I/usr/local/include -L/usr/local/lib -lkcgi -lkcgihtml -lz
doas install -o www -g www -m 0500 build/vars_kcgi /var/www/cgi-bin/
doas mkdir /var/www/tmp
doas chmod 1777 /var/www/tmp
cc -static -g -W -Wall -o build/example4 examples/example4.c -I/usr/local/include -L/usr/local/lib -lkcgi -lkcgihtml -lz -lsqlite3
doas install -o www -g www -m 0500 build/example4 /var/www/cgi-bin/
cc -static -g -W -Wall -o build/quiz4 quiz4.c -I/usr/local/include -L/usr/local/lib -lkcgi -lkcgihtml -lkcgijson -lz -lsqlite3
doas install -o www -g www -m 0500 build/quiz4 /var/www/cgi-bin/
doas install -o www -g www -m 0500 quiz4.js /var/www/htdocs/