Install cgi-mapserver by entering the following commands in the terminal:
sudo apt update sudo apt install cgi-mapserver
CGI executable for MapServer
This package contains the mapserv CGI program. It provides the MapServer template language, and can be used to implement Web Map Service applications. . MapServer is a CGI-based framework for Internet map services which supports Open Geospatial Consortium (OGC) standards. Scripting functionality in MapScript is provided by the suggested mapscript library packages.