Mapscript installation problem
Johannes Weigel
weigel at ECOGIS.DE
Sun Oct 2 11:47:54 PDT 2005
Hi again!
OK, I got it. Had to register the phtml file extension in Apache's mime
types. Now everything works fine!
Thx,
Johannes
Johannes Weigel wrote:
> Hi everybody,
>
> I' trying to run Mapserver 4.6.1 with apache 2.0.54 and PHP 5.0.5 on a
> Mandrake 10.0 linux machine. I followd the verbose linux install howto
> (http://ms.gis.umn.edu/docs/howto/verboselinuxinstall) which worked
> quite well, and finally I got everything installed. Apache with PHP are
> active, and Mapserver is working, as I get an answer to my cgi-request
> ("No query information to decode. QUERY_STRING is set, but empty.")
>
> Then I tried to run a demo application (hello.phtml from
> http://www.mobilegeographics.com/mapserver/) but I don't get a map
> display. Instead only a part of the php request is displayed: draw();
> $image_url=$image->saveWebImage(); ?>
>
> (The HTML code starts as following:
> <?php
> dl("php_mapscript.so");
>
> $map_file="./hello.map";
> $map = ms_newMapObj($map_file);
> $image=$map->draw();
> $image_url=$image->saveWebImage();
>
> ?>
> )
>
> Can anybody tell me what is the problem? I even copied the
> php_mapscript.so into the appropriate php extensions directory. To
> compile PHP and Mapserver I used the following options:
> PHP:
> ./configure \
> --prefix=/usr/local/apache2/php \
> --with-php-regex=/usr/local/apache2/php/include/php/regex \
> --disable-cgi \
> --with-config-file-path=/usr/local/apache2/php \
> --with-openssl \
> --with-kerberos \
> --with-zlib \
> --with-bz2 \
> --with-curl \
> --enable-dbase \
> --enable-ftp \
> --with-gd \
> --with-pgsql \
> --with-xsl \
> --with-mysql \
> --with-gettext
>
> Mapserver:
> ./configure \
> --with-proj=/usr/local \
> --with-geos=/usr/local/bin/geos-config \
> --with-ogr=/usr/local/bin/gdal-config \
> --with-gdal=/usr/local/bin/gdal-config \
> --with-postgis=/usr/local/pgsql/bin/pg_config \
> --with-curl-config=/usr/bin/curl-config \
> --with-httpd=/usr/local/apache2/bin/httpd \
> --with-gd=/usr/local \
> --with-php=/usr/local/apache2/php \
> --with-php-regex=/usr/local/apache2/php/include/php/regex \
> --with-wms \
> --with-wfs
>
> Best regards,
>
> Johannes
>
More information about the MapServer-users
mailing list