[mapserver-users] mapscript version and date
Richard Greenwood
richard.greenwood at gmail.com
Tue Feb 23 08:35:12 PST 2016
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:
> <http://my_server_name/wm_goth/map.phtml?winsize=large&language=it&config=>
> http://my_server_name/wm_goth/map.php?winsize=large&language=it&config=
>
> 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?
> 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=
> 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
>
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
>
>
>
>
> --
> Richard W. Greenwood, PLS
> www.greenwoodmap.com
>
--
Richard W. Greenwood, PLS
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160223/2a868919/attachment.htm>
More information about the MapServer-users
mailing list