[mapserver-users] mapscript version and date
Antti J. Lind
anttij.lind at birdlife.fi
Tue Feb 23 08:26:23 PST 2016
Hi,
Somewhere after other AddHandlers in file /etc/httpd/conf/httpd.conf.
Maybe something like this:
AddHandler php5-script .phtml
--
AJL
Eugenio Trumpy kirjoitti 2016-02-23 17:56:
> 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:
>>
> [2]http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
>> [4]
>>
>> 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? [1]
>>> 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=
>>> [2]
>>> 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 [3]
>>
>> --
>>
>> Richard W. Greenwood, PLS
>> www.greenwoodmap.com [5]
>
> --
>
> Richard W. Greenwood, PLS
> www.greenwoodmap.com [5]
>
> Links:
> ------
> [1] http://my_server_name/cgi-bin/mapserv?
> [2]
> http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=
> [3] http://lists.osgeo.org/mailman/listinfo/mapserver-users
> [4]
> http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
> [5] http://www.greenwoodmap.com
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list