[mapserver-users] seemingly sucessfully compiled mapserver 7.0.1 on ubuntu 14.04 - but NO - gives binary output ?

Jeff McKenna jmckenna at gatewaygeomatics.com
Tue Apr 5 06:52:04 PDT 2016


Hi Karsten,

With Ubuntu, your problem is a combination of what Jukka and Jörg said. 
  Here is what I would do in your situation, with Ubuntu:

- make sure the mapserv executable has the correct permissions, with a 
command (inside cgi-bin directory) such as:

   sudo chmod 755 mapserv

- make sure that you have configured the appropriate permissions through 
Apache for the cgi-bin directory, such as:

           ScriptAlias /cgi-bin/ /var/www/public_html/cgi-bin/
         <Directory /var/www/demo.gatewaygeomatics.com/public_html/cgi-bin/>
           Options ExecCGI
           SetHandler cgi-script
         </Directory>

- restart Apache

   sudo /etc/init.d/apache2 restart


-jeff

-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/





On 2016-04-05 3:50 AM, karsten wrote:
> Hi All,
> I just seemingly sucessfully compiled mapserver 7.0.1 on Ubuntu 14.04
> and can getv the follwoing output  from the executable:
> /usr/lib/cgi-bin# ./mapserv -v
> MapServer version 7.0.1 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ
> SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=ICONV
> SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
> SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
> Howvere when I try to get a get aresponse to a request e.g.
> 136.243.250.62/cgi-bin/mapserv
> or aslo when I try a getcapabiliteis request like
> http://136.243.250.62/cgi-bin/mapserv?map=/var/www/mapdata/ccrp/mapfiles/fingermillet2.map&VERSION=1.1.1&REQUEST=getCapabilities&SERVICE=wms
> I always get a 'binary file back' output like below the line . Would
> anybody know what could have gone wrong or where to start figuring this
> out ?
> Cheers
> Karsten
>
> Karsten Vennemann
> Terra GIS LTD
>






More information about the MapServer-users mailing list