help! Mapserver installation!

corvao viperp at GMAIL.COM
Thu Aug 11 10:26:13 EDT 2005


Hi everyone! I've got  a pretty big problem here, I can't install the
mapserver correctly.

System configuration:

- Debina Stable
- Apache2
- php 4
- mysql
- mapserver 4.6

- Everything, except the mapserver, was installed using the apt-get install. 
- Procedure used for mapserver installation:
- cd mapserver 4.6
-  ./configure --with-gd --without-tiff --with-freetype --with-proj
--with-ogr --with-gdal --with-wmsclient
--with-php=/home/ler/php 4

- Where /home/ler/php4 is where I unzipped the php4, made the
./configure and the make

- Next I copied the file called mapserv generated by the mapserver to
the apache's cgi-bin directory

- And copied the php_mapscript.so file to /usr/lib/php4/20020429/

And the error is the following:

Warning: [MapServer Error]: getString(): Parsing error near
(none):(line 36) in /var/www/sipeas_novo/htdocs/index.php on line 35

Warning: Failed to open map file 2.map in
/var/www/sipeas_novo/htdocs/index.php on line 35


The erroneus part of index.php is the following:

if (PHP_OS == "WINNT" || PHP_OS == "WIN32")
{
    $dlext = "dll";
}
else
{
    $dlext = "so";
}

dl("php_mapscript.so");

include("index.inc.php");

if ($HTTP_FORM_VARS["CODIGO_MAPA"]){
	$gpoMap = ms_newMapObj(strval($HTTP_FORM_VARS["CODIGO_MAPA"]).".map");
}
else{
	$gpoMap = ms_newMapObj("1.map");
}

Can anybody help? I can be contacted by either msn or email.

ty



More information about the mapserver-users mailing list