Hi everyone,
I've just installed mapserver (5.0.0) on my gentoo linux box, and am trying to
get the mapscript examples running, that exists in
/usr/share/doc/mapserver-5.0.0/mapscript/examples/php.
This is what I have successfully done...
1) installed the demo examples downloaded from the mapserver website (for
version 5.0, i.e. workshop-5.0.zip), and unzipped them into a subdirectory
(mapserver) of my web root
2) got the demo working perfectly within my web browser
3) copies the .phtml files from the mapscript/examples/php directory to the same
directory as the example was unzipped into under the web root.
4) installed php_mapscript.so and configured everything so that
phpinfo_mapscript.phtml works, and displays the mapscript module as working.
So clearly, I have mapscript working as a cgi, and as a module, but when I try
to load the page http://localhost/mapserver/test_draw_map.phtml, I get the
following error:
Warning: [MapServer Error]: msLoadMap(): (itasca.map) in
/var/www/localhost/htdocs/mapserver/test_draw_map.phtml on line 35
Warning: Failed to open map file itasca.map in
/var/www/localhost/htdocs/mapserver/test_draw_map.phtml on line 35
Fatal error: Call to a member function draw() on a non-object in
/var/www/localhost/htdocs/mapserver/test_draw_map.phtml on line 47
I've tried using the following paths in the phtml file: itasca.map,
mapserver/itasca.map, /mapserver/itasca.map, and
http://localhost/mapserver.itasca.map... to no avail...
Any help here would be really appreciated!
Thanks,
James