Install the Apache server and enable the module named CGID.
Restart the Apache service.
As an example, let's create a Shell Script CGI.
Access the Apache's CGI directory.
Create a test page using Shell Script.
Here is the file content.
Change the file permission.
Open your browser and enter the IP address of your web server plus /cgi-bin/test.cgi.
In our example, the following URL was entered in the Browser:
The Shell Script page should display the following message.
Congratulations! The Apache server is now able to use Shell Script as CGI.