Run Apache2 Server

Checkout and Build the Application

A Hello World example webpage hosted on an Apache2 server is provided in our GitHub repository. Clone the repository:

git clone https://github.com/gingercybersecurity/ginger-apache2
cd ginger-apache2

You will also need to install apache2 so that the binary can be found at /usr/sbin/apache2.

sudo apt install apache2

The gingervm tool will install the disk images under the target directory. The directory must be created before running gingervm. Create the directory in the ginger-apache2 directory.

mkdir target

The Apache2 package installs a set of modules under /usr/lib/apache2/modules. The image.yaml file is configured so that all the files under this directory are scanned as executable files. The file httpd.exp in this directory is not an executable file. Move httpd.exp to the /tmp directory to simplify the image.yaml configuration file.

sudo mv /usr/lib/apache2/modules/httpd.exp /tmp/

Now that you've completed the first step of getting the code and installing Apache2, you can continue on to the Deployment Steps to create the disk image and launch your virtual machine.

After you have completed the deployment steps, you can move httpd.exp back to its original location.

Copyright © 2026 | Ginger Cybersecurity LLC | All Rights Reserved

Privacy Policy / Cookie Policy / Terms and Conditions