Would you like to learn how to install Apache and enable the use of Shell Script CGIs on a computer running Ubuntu Linux? In this tutorial, we are going to show you how to enable the CGI feature and enable Shell Scripts to run on the Apache server.
• Ubuntu 18
• Ubuntu 19
• Ubuntu 20
• Apache 2.4.41
Copyright © 2018-2021 by Techexpert.tips.
All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means without the prior written permission of the publisher.
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Apache – Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Apache.
Tutorial Apache – Shell Script CGI
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:
• http://192.168.2.113/cgi-bin/test.cgi
The Shell Script page should display the following message.
Congratulations! The Apache server is now able to use Shell Script as CGI.