Testing CGI Service
CGI (The Common Gateway Interface) is a way of connecting your web pages to other programs that are running on the server which visitors wouldn't normally have access to. Most corporate web sites on the Internet today make use of CGI programs or scripts to allow their visitors to browse online catalogues or keep track of their orders in real time.
The subdirectory "webspace/cgi-bin" is located in your home directory. This subdirectory is intended for storing your cgi files. If your subscription includes the CGI support, devote a couple of minutes to test that your CGI really works.
Note: Before testing, make sure that the CGI support is on. To check, go to Websites, click the name of the desired domain. At the opened page click Web Hosting Settings and then select General tab. click the Edit button and put a tick in the CGI support check box to enable it. Click Submit to save changes.
To test CGIing:
- Go to Websites, click the name of the desired domain. At the opened page click Web Hosting Settings and then select the CGI-bin tab.
- Click on the URL of the CGI-bin test page in the How to use CGI-Bin area.
- The test page will open in the new window. If it contains "The test of the CGI (with sh)" phrase colored red and blue, then your CGI service works properly and you can store the CGI files in
webspace/cgi-bin
directory.