Ok, my error.

You should probably NOT have the file /var/www/cgi-bin this looks very bad. I would look at this file and see what it is doing.

less /var/www/cgi-bin

What you should have:

$ ls -ld /usr/lib/cgi-bin/
drwxr-xr-x 2 root root 4096 Mar 16  2012 /usr/lib/cgi-bin/
$ ls -l /usr/lib/cgi-bin/
total 36
-rwxr-xr-x 1 root root 34461 Mar 28  2012 mapserv
$ /usr/lib/cgi-bin/mapserv -v
MapServer version 6.2.0 OUTPUT=PNG
OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG
INPUT=SHAPEFILE

What Linux distribution are you running?

-Steve

On 3/4/2013 1:32 PM, Stefanos Anastasiou wrote:
OK I'm pasting the results of the commands:

file /var/www/cgi-bin    ----> /var/www/cgi-bin: Bourne-Again shell
script, ASCII text executable, with very long lines

ls -l /var/www/cgi-bin  ----> -rwxr-xr-x 1 root root 7542 Feb 28 20:42
/var/www/cgi-bin

/var/www/cgi-bin/mapserv -v     ----> MapServer version 6.2.0 OUTPUT=PNG
OUTPUT=JPEG SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV INPUT=JPEG
INPUT=SHAPEFILE

What is strange though is that I installed apache through the
repositories and there is no config file, no log file... nothing... just
a folder /var/www

Apart from that server seems to work.. no need to restart every time...
what is strange though is that I get a weird message when I
start/restart/stop which is:

* Restarting web server apache2      apache2: Could not reliably
determine the server's fully qualified domain name, using 127.0.1.1 for
ServerName
  ... waiting apache2: Could not reliably determine the server's fully
qualified domain name, using 127.0.1.1 for ServerName


what's wrong here?




------------------------------------------------------------------------
*Απο:* Stephen Woodbridge <[email protected]>
*Προς:* [email protected]
*Στάλθηκε:* 10:06 μ.μ. Πέμπτη, 28 Φεβρουαρίου 2013
*Θέμα:* Re: [mapserver-users] First attempt on Maserver

On 2/28/2013 2:14 PM, Stefanos Anastasiou wrote:
 > Hello everyone!
 >
 > I'm quite new to mapserver and I'm experimenting with the 2 first
 > examples of Kropla's book... the first one, that is supposed to produce
 > just an image... I click on "Click me" button and the message I get is:
 >
 > Not Found
 >
 > The requested URL /cgi-bin/mapserv was not found on this server
 >
 > I don't get it.. according to the instructions cp mapserv
/var/www/cgi-bin
 >
 > Why isn't it working?

OK, there are a bunch of assumptions in the above:

cp mapserv /var/www/cgi-bin

assumes the apache or your webserver is configured to look for cgi-bin
files in this directory

assumes that the directory already exists. what does these report:

file /var/www/cgi-bin
ls -l /var/www/cgi-bin/mapserv
/var/www/cgi-bin/mapserv -v

If the above looks ok, then you probably need to look at the apache
config. If you changed the apache config as part of your install, have
you restarted apache:

sudo /etc/init.d/apache2 restart
   or
sudo /etc/init.d/apache restart

-Steve W
_______________________________________________
mapserver-users mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/mapserver-users



_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to