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

karsten karsten at terragis.net
Tue Apr 5 00:44:37 PDT 2016


Hi,
 
Thanks for our response. I don't think that is the issue because the apparent 'download' of the mapserv executable is only because browsers in this case do not 'understand' the mine type of the response . Regularly the response is just a text file but apparently a 'download' of mapserv... I fact you can usually rename the downloaded mapserv and rename as a text file then read the error message.
I have in any  Apache configuration
 
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Require all granted
    </Directory>

Cheers
Karsten

  _____  

From: Rahkonen Jukka (MML) [mailto:jukka.rahkonen at maanmittauslaitos.fi] 
Sent: Tuesday, April 05, 2016 0:17
To: karsten at terragis.net; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] seemingly sucessfully compiled mapserver 7.0.1 on ubuntu 14.04 - but NO - gives binary output ?



Hi,

 

I believe that there is something wrong with the configuration of your http server. It does not seem to know that you do not want to download the mapserv binary but make the binary to work for you. If you run Apache I would have a look at “ScriptAlias” in the httpd.conf file and check that the directory where you have placed the mapserv binary is configured to contain applications. This example is from Windows.

 

# ScriptAlias: This controls which directories contain server scripts. 

    # ScriptAliases are essentially the same as Aliases, except that

    # documents in the target directory are treated as applications and

    # run by the server when requested rather than as documents sent to the

    # client.  The same rules about trailing "/" apply to ScriptAlias

    # directives as to Alias.

    #

    ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/"

    ScriptAlias /fcgi-bin/ "/ms4w/Apache/cgi-bin/"

 

-Jukka Rahkonen-

 

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 <http://136.243.250.62/cgi-bin/mapserv?map=/var/www/mapdata/ccrp/mapfiles/fingermillet2.map&VERSION=1.1.1&REQUEST=getCapabilities&SERVICE=wms> &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

.----------------binary output below? -----------------

ELF          >    ð
@     @       P"          @ 8   @ ‑        @       @ @     @ @     ø      ø                   8      8@     8@                                          @       @                               ð      ð`     ð`           (                    ‑      ‑`     ‑`     ð      ð                   T      T@     T@     D       D              Påtd   È      È@     È@     <       <              Qåtd                                                  Råtd   ð      ð`     ð`                        /lib64/ld-linux-x86-64.so.2          GNU                       GNU 
O ~a¢; ¼k*BUÍš~6›   ‑         €!
ˆ @‑   "   *   j CÖºã’|(ŒCEÕìjš|2bÛíØqX8ò‹ÚÍ㞸ñ

:­KãÀêÓï
âž Ñ”ó                        µ                                             Ï                      š                      e                                           m                     /                                                                  –                     Y                     l                      ¥                      å                      >                       `                     9                     û                      £                     Ý                      ª                                          R                       t                     /                                          y                     ’                      b    è `             Ï    !`             ˆ     !`            ¼    ø `             ·   
 $@           h   
 ð
@             à    ø `                 !`            o   
 @@     e       y   
@             d     è `             ‘    À@            \   
 ´@             R   
 °@               
 Ý@     G        libmapserver.so.2 _ITM_deregisterTMCloneTable __gmon_start__ _Jv_RegisterClasses _ITM_registerTMCloneTable msIO_installHandlers msFreeMapServObj msDebug loadParams msCGIWriteError msIO_fprintf msGetVersion msCGIWriteLog msSetup msGetGlobalDebugLevel msCGIDispatchRequest msCGILoadMap msAllocMapServObj msCleanup msIO_setHeaderEnabled libc.so.6 fflush exit strncmp signal puts putchar putenv stdout stderr gettimeofday strcmp __libc_start_main _edata __bss_start _end /src/ms/mapserver-7.0.1/build:/usr/local/lib::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: __libc_csu_fini __data_start __libc_csu_init msCleanupOnSignal _IO_stdin_used GLIBC_2.2.5                                                                      O         ui           ø­`                    !`                    !`        %            `                     `                   ( `                   0 `                   8 `                   @ `                   H `                   P `                    X `        
           ` `                   h `                   p `        
           x `        
           € `                   ˆ `                    `                   ˜ `                     `                   ¨ `                   ° `                   ¸ `                   À `                   È `                   Ð `                   Ø `                   à `                   HƒìH‹Õ  H…Àtèƒ   HƒÄà              ÿ5  ÿ%Ä  ­@ ÿ%  h    éàÿÿÿÿ%º  h   éÐÿÿÿÿ%²  h   éÀÿÿÿÿ%ª  h   é°ÿÿÿÿ%¢  h   é ÿÿÿÿ%š  h   éÿÿÿÿ%’  h   é€ÿÿÿÿ%Š  h   épÿÿÿÿ%‚  h   é`ÿÿÿÿ%z  h    éPÿÿÿÿ%r  h
   é@ÿÿÿÿ%j <mailto:é@ÿÿÿÿ%25j>   h
   é0ÿÿÿÿ%b  h
   é ÿÿÿÿ%Z  h
   éÿÿÿÿ%R  h
   é ÿÿÿÿ%J  h   éðþÿÿÿ%B  h   éàþÿÿÿ%:  h   éÐþÿÿÿ%2  h   éÀþÿÿÿ%*  h   é°þÿÿÿ%"  h   é þÿÿÿ%  h   éþÿÿÿ%  h   é€þÿÿÿ%
  h   épþÿÿÿ%  h   é`þÿÿÿ%ú  h   éPþÿÿ1íI‰Ñ^H‰âHƒäðPTIÇÀ°@ HÇÁ@@ HÇÇ$@ ègÿÿÿôf­D  ¸ÿ ` UH-ø ` Hƒø
H‰åw]ø    H…Àtô]¿ø ` ÿà­€    ¸ø ` UH-ø ` HÁøH‰åH‰ÂHÁê?HÐHÑøu]ú    H…Òtô]H‰Æ¿ø ` ÿâ­€    €=y   uUH‰åè~ÿÿÿ]Æf  óí@ Hƒ=H
   t‑¸    H…ÀtU¿ ‑` H‰åÿÐ]é{ÿÿÿ­ ésÿÿÿUH‰åHƒì‰}üº    ¾    ¿    èþÿÿH‹  ¾È@ H‰Ç¸    è;ýÿÿè–þÿÿ¿    è
þÿÿUH‰åSHƒìh‰}œH‰uÇE¤   HÇE¨    è(þÿÿ…ÀtH‹E¨H‰Çè¸ýÿÿèSþÿÿ¿    èÉýÿÿè´ýÿÿƒøvHE°¾    H‰Çè^ýÿÿÇE    é‹  ‹E H˜HÅ    H‹EHÐH‹ ¾ß@ H‰Çè®ýÿÿ…Àu&èýÿÿH‰ÇèÝýÿÿH‹6  H‰Çè‑ýÿÿ¿    èTýÿÿ‹E H˜HÅ    H‹EHÐH‹ ¾â@ H‰Çè`ýÿÿ…ÀuÇE¤    ¿    è+ýÿÿéû   ‹E H˜HÅ    H‹EHÐH‹ º
   ¾æ@ H‰Çè=üÿÿ…Àu.¿ô@ èoýÿÿ‹E H˜HÅ    H‹EHÐH‹ H‰ÇèPýÿÿé    ‹E H˜HÅ    H‹EHÐH‹ ¾@ H‰ÇèÇüÿÿ…Àt(‹E H˜HÅ    H‹EHÐH‹ ¾
@ H‰ÇèŸüÿÿ…ÀuP¿@ èÑüÿÿ¿
   è÷üÿÿ¿P@ è½üÿÿ¿`@ è³üÿÿ¿˜@ è©üÿÿ¿Ð@ èŸüÿÿ¿@ è•üÿÿ¿    èüÿÿƒE ‹E ;EœŒiþÿÿ¾Ý@ ¿
   èlûÿÿ¾Ý@ ¿   è]ûÿÿèHüÿÿH‰E¨H‹E¨‹U¤‰PH‹E¨H‹XH‹E¨H‹@A¸    ¹    º    ¾    H‰Çèíúÿÿ‰CH‹E¨H‹@‹@ƒøÿu
H‹E¨H‰ÇènûÿÿëpH‹E¨H‰Çè ûÿÿH‹U¨H‰BH‹E¨H‹@H…Àu
H‹E¨H‰Çè?ûÿÿëAH‹E¨H‹@‹€H‑  ƒø~HEо    H‰ÇèéúÿÿH‹E¨H‰ÇèMûÿÿ…Àt
H‹E¨H‰ÇèýúÿÿH‹E¨H‹@H…Àt{H‹E¨H‹@‹€H <mailto:H‹E¨H‰ÇèýúÿÿH‹E¨H‹@%18H…Àt%7bH‹E¨H‹@%18‹€H> ‑  ƒø~hHEྠ   H‰Çè›úÿÿH‹EàòH*ÈH‹EèòH*Àòa  ò^ÂòXÁH‹EÐòH*ÐH‹EØòH*Èò?  ò^ËòXÊò\Á¿X@ ¸   èDûÿÿH‹E¨¾    H‰Çè³ùÿÿH‹E¨H‰Çè×ùÿÿèbúÿÿƒøvhHEÀ¾    H‰Çè
úÿÿH‹EÀòH*ÈH‹EÈòH*ÀòÒ  ò^ÂòXÁH‹E°òH*ÐH‹E¸òH*Èò°  ò^ËòXÊò\Á¿˜@ ¸   èµúÿÿè€úÿÿ¿    èöùÿÿf­D  AWA‰ÿAVI‰öAUI‰ÕATL%˜   UH-˜   SL)å1ÛHÁýHƒìè¥øÿÿH…ít‑­„     L‰êL‰öD‰ÿAÿÜHƒÃH9ëuêHƒÄ[]A\A]A^A_Ãff.­„     óà  HƒìHƒÄà         In msCleanupOnSignal.
 -v -nh QUERY_STRING= REQUEST_METHOD=GET --h --help       Usage: mapserv [--help] [-v] [-nh] [QUERY_STRING=value] Options :         -h, --help              Display this help message.      -v                      Display version and exit.       -nh                     Suppress HTTP headers in CGI mode.      QUERY_STRING=value      Set the QUERY_STRING in GET request mode.     mapserv request processing time (msLoadMap not incl.): %.3fs
   mapserv total execution time: %.3fs
        €„.A;<      xöÿÿˆ   (øÿÿX   ùÿÿ°   \ùÿÿÐ   xýÿÿð   èýÿÿ8             zR x      È÷ÿÿ*                  zR x  $      èõÿÿ°   
F
J
w€ ?;*3$"       D   ]øÿÿG    A
†C
          d   „øÿÿ   A
†C
Eƒ    D   „   €üÿÿe    B
E
ŽE
E
(ŒH
0†H
8ƒM
@l
8A
0A
(B
B
B
B
   Ì   ¨üÿÿ  

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160405/1a1f106f/attachment-0001.html>


More information about the mapserver-users mailing list