[maplab-users] need help for maplab install,
can not read index.phtml
Zak James
zak-ms at hoppsan.org
Tue Jun 8 11:24:19 EDT 2004
Charlie,
You should take a look at the httpd.conf file distributed with your
MS4W - it has a working configuration that could be adapted to your
needs. The thing you are missing is a type handler for phtml:
AddType application/x-httpd-php .phtml
zak
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca
On Jun 8, 2004, at 10:45 AM, charley cheng wrote:
> Thank you very much, Zak.
> I tried it, it does not works. I put the other .php file such as
> mascript_test.php under htdocs of maplab folder. It works fine. It
> means that .php in maplab is read by apache and mapscript/php. The
> problem is that it does not read .phtml file.
>
> I put php folder at C:Program files/Apache group/Apache/php
>
> My maplab under C:/maplab/maplab-2.1-rc3
>
> I have tried MS4W, however I am now planning to establish
> mapserver/maplab system on company server.MS4W might not be a choice.
>
> By the way, I am MGIS student in Department of Geography, University
> of Calgary. Currently, I am working as a summer student in a
> environmental engineering company.
>
> Looking forward for your advice and thank you for your time.
>
> Charlie
>
>
> Zak James <zak-ms at hoppsan.org> wrote:
> Charlie,
>
> You need to make apache aware that php code has to be handled
> differently by adding something like
>>> #Added for MapScript PHP functionality
>>> ScriptAlias /php/ "c:/php/"
>>> AddType application/x-httpd-php .php
>>> Action application/x-httpd-php "/php/php.exe"
>
> to your httpd.conf.
>
> By far the easiest way to set up maplab on windows is to use the MS4W
> package found here:
>
> http://maptools.org/ms4w/index.phtml
>
> It includes a properly configured httpd.conf and will work right away
> after being installed.
>
> zak
> --
> Zak James
> Applications and Software Development
> DM Solutions Group Inc.
> http://www.dmsolutions.ca
>
>
> On Jun 8, 2004, at 4:51 AM, charley cheng wrote:
>
>> Hi! Dear Lists,
>>
>> This is my first time installing maplab
>> I install maplab on windowsXp, apache web server, mapscript, php.
>> The mapscript test.php works well. I also access maplab
>> folder(http://localhost/mymaplab/htdocs/index.phtml). The problem is
>> that when read the index.phtml, it only show the code .
>> In httpd, I set:
>>
>> DirectoryIndex index.html index.html.var index.phtml default.phtml
>> default.html
>>
>> Alias /mymaplab/ "C:/maplab/maplab-2.1-rc3/"
>>
>> Options Indexes MultiViews
>> AllowOverride None
>> Order allow,deny
>> Allow from all
>>
>> why can not read index.phtml?
>>
>> looking forward for any suggestion and advice
>>
>> Thank you very much!!
>>
>> Charlie
>>
>>
>>
>>
>>> /**
>> * main index frameset for maplab
>> *
>> * @project MapLab
>> * @revision $Id: index.phtml,v 1.6 2003/02/13 19:47:54 sacha Exp $
>> * @purpose main index frameset for maplab
>> * @author Paul Spencer (spencer at dmsolutions.ca)
>> * @copyright
>> * Copyright (c) 2001, DM Solutions Group Inc.
>> * Permission is hereby granted, free of charge, to any person
>> obtaining a
>> * copy of this software and associated documentation files (the
>> "Software"),
>> * to deal in the Software without restriction, including without
>> limitation
>> * the rights to use, copy, modify, merge, publish, distribute,
>> sublicense,
>> * and/or sell copies of the Software, and to permit persons to whom
>> the
>> * Software is furnished to do so, subject to the following conditions:
>> *
>> * The above copyright notice and this permission notice shall be
>> included
>> * in all copies or substantial portions of the Software.
>> *
>> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
>> EXPRESS OR
>> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
>> MERCHANTABILITY,
>> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
>> SHALL
>> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
>> OR OTHER
>> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
>> ARISING
>> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
>> * DEALINGS IN THE SOFTWARE.
>> */
>>
>> include_once( "./common/session/session.php" );
>> installSessionDirectoryHandler();
>>
>> $sess_name = "sid";
>>
>> initializeSession();
>> ........
>>
>>
>>
>>
>>
>> ---------------------------------
>> Post your free ad now! Yahoo! Canada Personals
>> _______________________________________________
>> Maplab-users mailing list
>> Maplab-users at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/maplab-users
>
>
>
> ---------------------------------
> Post your free ad now! Yahoo! Canada Personals
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
More information about the Maplab-users
mailing list