You can upload and run CGI scripts to make your site interact with databases and other applications.
To upload and run a CGI script:
Note: If you are writing a script that sends out email, make sure to include a valid email address in the From field header; otherwise, all replies are returned to the Web server and becomes unavailable to you.
cgi-bin
, then your CGI directory name is /var/www/cgi-bin
.Important: If you are on a Microsoft Windows system, you need to upload CGI scripts to your site through an FTP connection instead of through the File Manager. Further, when you upload through FTP, upload files as ASCII, so that hidden characters inserted into the CGI script by Windows are translated correctly. If these characters are not translated correctly, the CGI scripts do not work.
If you are on a Linux system, you can upload CGI scripts to your site through the File Manager. Linux does not add hidden characters to files, so no translation is needed.
http://
<
web_server_name>/<script alias>/<script name>
Your CGI script runs. The results appear in the browser window.