[mapserver-users] mapscript version and date

Antti J. Lind anttij.lind at birdlife.fi
Tue Feb 23 09:22:48 PST 2016


Hi,

I think it's on systemlevel as ex. LogFormat

--
AJL

Eugenio Trumpy kirjoitti 2016-02-23 19:17:
> Hi,
> 
> find a clear guide on how to set AddHandler ... is my problem, I found
> many guides but
> anyone clear.
> In my apache2.conf there are no lines on AddHandler, I wonder if I
> have to insert it on my default virtualhost or wherever.
> 
> Any other helps?
> Thanks for now
> 
> E.
> 
> -------------------------
> Date: Tue, 23 Feb 2016 09:35:12 -0700
> Subject: Re: [mapserver-users] mapscript version and date
> From: richard.greenwood at gmail.com
> To: frippe12573 at hotmail.com
> CC: mapserver-users at lists.osgeo.org
> 
> You need to add something like this to you apache2.conf or in an
> .htaccess file
>  AddHandler application/x-httpd-php .php .phtml
> But you might Google a little and find the Ubuntu way of doing it. The
> .phtml extension got un-registered when you switched to php-fpm.
> 
> Rich
> 
> On Tue, Feb 23, 2016 at 8:56 AM, Eugenio Trumpy
> <frippe12573 at hotmail.com> wrote:
> 
>> Hi,
>> 
>> you are completely right. I just renamed map.phtml in map.php and
>> the application seems to run fine.
>> Actually I would prefer to register .phtml in my php handler in
>> apache, but since I changed the php module (php-fpm)
>> I don't know where I should insert the handler.
>> 
>> E.
>> 
>> -------------------------
>> Date: Tue, 23 Feb 2016 08:48:02 -0700
>> 
>> Subject: Re: [mapserver-users] mapscript version and date
>> From: richard.greenwood at gmail.com
>> To: frippe12573 at hotmail.com
>> CC: mapserver-users at lists.osgeo.org
>> 
>> Well you need to rename map.phtml to map.php. I think that your
>> problem is that the ".phtml" is not registered with your php
>> handler. So if you don't want to rename map.phtml you need to modify
>> your Apache config.
>> 
>> On Tue, Feb 23, 2016 at 8:32 AM, Eugenio Trumpy
>> <frippe12573 at hotmail.com> wrote:
>> 
>> Hi,
>> 
>> following your suggestion I tried:
>> 
> [1]http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
>> [2]
>> 
>> I got page error: NOT FOUND
>> The request url /wm_goth/map.php was not found on this server.
>> 
>> It does help?
>> 
>> E.
>> 
>> -------------------------
>> Date: Tue, 23 Feb 2016 08:27:18 -0700
>> Subject: Re: [mapserver-users] mapscript version and date
>> From: richard.greenwood at gmail.com
>> To: frippe12573 at hotmail.com
>> CC: mapserver-users at lists.osgeo.org
>> 
>> What happens if you change the extension from phtml to php, e.g.
>> map.php
>> 
>> On Tue, Feb 23, 2016 at 7:43 AM, Eugenio Trumpy
>> <frippe12573 at hotmail.com> wrote:
>> 
>> Hi,
>> 
>> my info.php states that I have installed Mapserver, version 6.4.1
>> but no date and version are declared
>> for php_mapscript.
>> On this ubuntu server I recently switched the php mode in apache,
>> from normal mod-php5 to mod-fpm.
>> Apache rightly interprets the php pages, whilst mapserver (and
>> pmapper) have problems.
>> The mapserver seems to work fine, the URL
>> http://my_server_name/cgi-bin/mapserv? [3]
>> gives me the classical string:
>> No query information to decode. QUERY_STRING is set, but empty.
>> However launching the pmapper application by url:
>> 
> http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
>> [1]
>> I got an almost empty page (only line on the top) and php code in
>> the browser tab title.
>> 
>> Can you give me hints?
>> 
>> Eugenio
>> 
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users [4]
>> 
>> --
>> 
>> Richard W. Greenwood, PLS
>> www.greenwoodmap.com [5]
> 
> --
> 
> Richard W. Greenwood, PLS
> www.greenwoodmap.com [5]
> 
> --
> 
> Richard W. Greenwood, PLS
> www.greenwoodmap.com [5]
> 
> Links:
> ------
> [1]
> http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
> [2]
> http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
> [3] http://my_server_name/cgi-bin/mapserv?
> [4] http://lists.osgeo.org/mailman/listinfo/mapserver-users
> [5] http://www.greenwoodmap.com


More information about the mapserver-users mailing list