Would you like to make this site your homepage? It's fast and easy...
Yes, Please make this my home page!
DOWNLOADS
SERVER SOFTWARE
Apache Download
GNU C++ COMPILER
GNU C++ Download
If you have problems downloading, try to run the download instead of saving it.
Installation Destination should be C:\Apache
Installation Destination should be C:\MinGW
Apache has two important folders - htdocs (put html in here)and cgi-bin (put cgi scripts in here)
After you download Apache and install it, you will come to a screen called Server Information
type:
Network Domain - localdomain
Server Name - localhost
Administrator Email Address - your email address
Check Box: Run as service for All Users
Check if Apache is running goto Browser and type - http://localhost (remember this is your index.html page)
GNU C++
You have to add MinGw to your systems path
Goto control panel, Systems icon, advanced tab, Environment Variables, scroll down to Path variable, click edit
at end of path put, C:\MinGW\bin;
verify installation goto C:\ prompt and type c++ -v
you may have to reboot computer.
COMPLIING CGI
To compile a c++ program into cgi
goto c: prompt
type c++ filename.cpp
runs without errors good to go to next step otherwise go back and correct errors
type c++ filename.cpp -o filename.cgi
When finished copy the filename.cgi to the cgi-bin of Apache
Open browser
type http:\\localhost\cgi-bin\filename.cgi
Congrats you just compiled your first cgi program