Running A CGI Written In C - Acme Systems
Toggle navigation
Acme Systems srl - Electronic design and manufacturing since 2005 Sede operativa: Via Aldo Moro 53 - 00055 Ladispoli (RM) - Italy VAT / Partita IVA / Codice Fiscale: IT 08114831004 Codice SDI: SUBM70N email: [email protected] - PEC: [email protected] - Tel: +39.06.99.12.187 - Fax: +39.06.622.765.31 Iscritta al Registro delle Imprese di Roma al n. 08114831004 - REA: RM-1074631 Sede legale: Viale dell'Umanesimo 199 - 00144 Roma Partners
Privacy policy Term & conditions Tracking Contact us About us Declarations Where we are
- Home
- eShop
- Price list
- Tracking
- Send money
- Terms
- Doc
- Main index
- Declarations of conformity
- Index by SOM
- How to recognize a card
- Downloads
- Troubleshooting
- Support channels
- Company
- Contact us
- About us
- Where we are
FOX Board G20 technical documentation Buy
Running a CGI written in C This article illustrates how to config lighttpd web server to run cgi written in CHello world example
Save this "Hello world !" source code example in /var/www/cgi-bin (create this directory if it not exists).
#include "stdio.h" int main(void) { printf( "Content-Type: text/plain\n\n" ); printf("Hello world !\n"); return 0; }Compile it typing:
debarm:~# gcc hello.c -o hello.cgilighttpd configuration
Change the server.modules list inside /etc/lighttpd/lighttpd.conf in:
server.modules = ( "mod_access", "mod_cgi", "mod_alias", "mod_accesslog", "mod_compress", )and add these lines:
$HTTP["url"] =~ "/cgi-bin/" { cgi.assign = ( "" => "" ) } cgi.assign = ( ".cgi" => "" )Restart lighttpd typing:
debarm:~# /etc/init.d/lighttpd restartFinal test
Access with your browser to the FOX Board web page using this URL:
http:///cgi-bin/hello.cgiHome page FOX Board G20 technical documentation Buy
Acme Systems srl - Electronic design and manufacturing since 2005 Sede operativa: Via Aldo Moro 53 - 00055 Ladispoli (RM) - Italy VAT / Partita IVA / Codice Fiscale: IT 08114831004 Codice SDI: SUBM70N email: [email protected] - PEC: [email protected] - Tel: +39.06.99.12.187 - Fax: +39.06.622.765.31 Iscritta al Registro delle Imprese di Roma al n. 08114831004 - REA: RM-1074631 Sede legale: Viale dell'Umanesimo 199 - 00144 Roma Partners
Privacy policy Term & conditions Tracking Contact us About us Declarations Where we are Từ khóa » C Cgi
-
C CGI Programming Example - IBM
-
Cgic: An ANSI C Library For CGI Programming
-
Getting Started With CGI Programming In C - Jukka Korpela
-
Web Programming (CGI) In C - YouTube
-
Ch 20 -- Developing CGIs With C And C++
-
Development Of A Clinical Global Impression Of Change (CGI-C) And ...
-
CGI Programming In C/C++
-
: Programming CGI In C - Eugene Eric Kim
-
World Wide Web CGI (Common Gateway Interface) Programming In C
-
HOW-TO Write A CGI Program In C/C++
-
Getting Started With CGI Programming In C - CSE-IITB
-
[PDF] Clinical Global Impression (CGI)
-
Common Gateway Interface - Wikipedia
-
Cgic 2.08: An ANSI C Library For CGI Programming - GitHub