What are the steps involved in configuring a server using CGI programming?

What are the steps involved in configuring a server using CGI programming?



- CGI program can configure the server but, before configuring there are certain parameters that must be configured and modified.

- Setting of ServerRoot is a must if any HTTP server is being used to configure the server.

- The directive in the httpd.conf must be pointing to the directory that is on the server and it is located at /usr/local/etc/httpd.

- Then run the CGI scripts which are being placed in ScriptAlias directive as this directive is used to map the resources and its file is srm.conf.

- The directory in which the CGI scripts are placed is as follows:
/cgi-bin/ /usr/local/etc/httpd/cgi-bin/

- The user can access the file that he has created by using the following URL on his local server as:
http://your_host.com/cgi-bin/hello
and the following directory is being executed on the server
/usr/local/etc/httpd/cgi-bin/hello

- CGI programs have different directories due to the security reasons and concerns. This way all the programs can be set at one place and the server administrator can have the control over it.
Post your comment