<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;">less /var/www/cgi-bin  gives a very very long bash (?) that looks something like...</span><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; font-style: normal;"><span><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">#! /bin/bash</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">#
 mapserv - temporary wrapper script for .libs/mapserv</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"># Generated by libtool (GNU libtool) 2.4.2</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">#</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"># The mapserv program cannot be directly executed until all the libtool</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"># libraries that it depends on are installed.</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">#</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"># This wrapper script should never be moved out of the build directory.</font></div><div
 style="background-color: transparent;"><font face="times new roman, new york, times, serif"># If it is, it will not operate correctly.</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"># Sed substitution that helps us do robust quoting.  It backslashifies</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"># metacharacters that are still active within double-quoted strings.</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">sed_quote_subst='s/\([`"$\\]\)/\\\1/g'</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif"><br></font></div><div style="background-color: transparent;"><font face="times new roman, new
 york, times, serif"># Be Bourne compatible</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">  emulate sh</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">  NULLCMD=:</font></div><div style="background-color: transparent;"><font face="times new roman, new york, times, serif">  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which</font></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 16px; font-style: normal;">etc
 etc</div></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"><br></span></div><div style="background-color: transparent;"><span><font face="times new roman, new york, times, serif">ls -ld /usr/lib/cgi-bin/   ---->  <span style="background-color: transparent;">drwxr-xr-x 2 root root 4096 Nov  8 23:37 /usr/lib/cgi-bin/</span><br></font></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york',
 times, serif; font-style: normal;"><span><font face="times new roman, new york, times, serif"><span style="background-color: transparent;"><br></span></font></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><span><font face="times new roman, new york, times, serif"><span style="background-color: transparent;"><br></span></font></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><span><font face="times new roman, new york, times, serif"><span style="background-color: transparent;">ls -l /usr/lib/cgi-bin  ----> total 0    (?? strange huh..)<br></span></font></span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"><span style="background-color:
 transparent;"><br></span></span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"><span style="background-color: transparent;"><br></span></span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px;"><span style="background-color: transparent;">I have a feeling that there has been a mistake in copying...  </span></span><font face="times new roman, new york, times, serif">cp mapserv /var/www/cgi-bin/</font></div><div>Does this mean that mapserv file is copied into /var/www and takes the name "cgi-bin"?? because the path on my system stops at  /var/www/cgi-bin</div><div><br></div><div>I'm using Linux mint 13 Maya </div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> 
 <b><span style="font-weight:bold;">Απο:</span></b> Stephen Woodbridge <woodbri@swoodbridge.com><br> <b><span style="font-weight: bold;">Προς:</span></b> Stefanos Anastasiou <emperor_stef@yahoo.gr>; mapserver-users <mapserver-users@lists.osgeo.org> <br> <b><span style="font-weight: bold;">Στάλθηκε:</span></b> 9:36 μ.μ. Δευτέρα, 4 Μαρτίου 2013<br> <b><span style="font-weight: bold;">Θέμα:</span></b> Re: Σχετ: [mapserver-users] First attempt on Maserver<br> </font> </div> <br>Ok, my error.<br><br>You should probably NOT have the file /var/www/cgi-bin this looks very <br>bad. I would look at this file and see what it is doing.<br><br>less /var/www/cgi-bin<br><br>What you should have:<br><br>$ ls -ld /usr/lib/cgi-bin/<br>drwxr-xr-x 2 root root 4096 Mar 16  2012 /usr/lib/cgi-bin/<br>$ ls -l /usr/lib/cgi-bin/<br>total 36<br>-rwxr-xr-x 1 root root 34461 Mar 28  2012 mapserv<br>$
 /usr/lib/cgi-bin/mapserv -v<br>MapServer version 6.2.0 OUTPUT=PNG<br>OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG<br>INPUT=SHAPEFILE<br><br>What Linux distribution are you running?<br><br>-Steve<br><br>On 3/4/2013 1:32 PM, Stefanos Anastasiou wrote:<br>> OK I'm pasting the results of the commands:<br>><br>> file /var/www/cgi-bin    ----> /var/www/cgi-bin: Bourne-Again shell<br>> script, ASCII text executable, with very long lines<br>><br>> ls -l /var/www/cgi-bin  ----> -rwxr-xr-x 1 root root 7542 Feb 28 20:42<br>> /var/www/cgi-bin<br>><br>> /var/www/cgi-bin/mapserv -v     ----> MapServer version 6.2.0 OUTPUT=PNG<br>> OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG<br>> INPUT=SHAPEFILE<br>><br>> What is strange though is that I installed apache through the<br>> repositories and there is no config file, no log file... nothing...
 just<br>> a folder /var/www<br>><br>> Apart from that server seems to work.. no need to restart every time...<br>> what is strange though is that I get a weird message when I<br>> start/restart/stop which is:<br>><br>> * Restarting web server apache2      apache2: Could not reliably<br>> determine the server's fully qualified domain name, using 127.0.1.1 for<br>> ServerName<br>>   ... waiting apache2: Could not reliably determine the server's fully<br>> qualified domain name, using 127.0.1.1 for ServerName<br>><br>><br>> what's wrong here?<br>><br>><br>><br>><br>> ------------------------------------------------------------------------<br>> *Απο:* Stephen Woodbridge <<a ymailto="mailto:woodbri@swoodbridge.com" href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>><br>> *Προς:* <a ymailto="mailto:mapserver-users@lists.osgeo.org"
 href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> *Στάλθηκε:* 10:06 μ.μ. Πέμπτη, 28 Φεβρουαρίου 2013<br>> *Θέμα:* Re: [mapserver-users] First attempt on Maserver<br>><br>> On 2/28/2013 2:14 PM, Stefanos Anastasiou wrote:<br>>  > Hello everyone!<br>>  ><br>>  > I'm quite new to mapserver and I'm experimenting with the 2 first<br>>  > examples of Kropla's book... the first one, that is supposed to produce<br>>  > just an image... I click on "Click me" button and the message I get is:<br>>  ><br>>  > Not Found<br>>  ><br>>  > The requested URL /cgi-bin/mapserv was not found on this server<br>>  ><br>>  > I don't get it.. according to the instructions cp mapserv<br>> /var/www/cgi-bin<br>>  ><br>>  > Why isn't it
 working?<br>><br>> OK, there are a bunch of assumptions in the above:<br>><br>> cp mapserv /var/www/cgi-bin<br>><br>> assumes the apache or your webserver is configured to look for cgi-bin<br>> files in this directory<br>><br>> assumes that the directory already exists. what does these report:<br>><br>> file /var/www/cgi-bin<br>> ls -l /var/www/cgi-bin/mapserv<br>> /var/www/cgi-bin/mapserv -v<br>><br>> If the above looks ok, then you probably need to look at the apache<br>> config. If you changed the apache config as part of your install, have<br>> you restarted apache:<br>><br>> sudo /etc/init.d/apache2 restart<br>>    or<br>> sudo /etc/init.d/apache restart<br>><br>> -Steve W<br>> _______________________________________________<br>> mapserver-users mailing list<br>> <a ymailto="mailto:mapserver-users@lists.osgeo.org"
 href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a> <mailto:<a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>><br>> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>><br>><br><br><br><br> </div> </div>  </div></body></html>