Skip to content

Various small scripts and more of me learning about things

License

Notifications You must be signed in to change notification settings

sideshowcoder/hackadihack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

CGIC

hello_world.cgi

Playing with CGI from C, since this is CGI everything can be run from the command line, but to run it via the webserver do the following (for apache at least)

Build

$ make 

Will create hello_world.cgi in the same directory.

Run

In the currently active site setup a directory to execute CGI

Alias /cgi-bin /var/www/cgi-bin
<Directory /var/www/cgi-bin>
    Options +ExecCGI
    AddHandler cgi-script .cgi
</Directory>

make sure mod cgi is loaded and enabled

$ a2enmod cgi

This will most likely enable cgid as apache is probably in threaded mode, but that is fine.

Now the CGI is accesible via the path http://server/cgi-bin/hello_world.cgi

About

Various small scripts and more of me learning about things

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published