[mapserver-users] First attempt on Maserver

Stephen Woodbridge woodbri at swoodbridge.com
Thu Feb 28 12:06:25 PST 2013


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


More information about the mapserver-users mailing list