[maplab-users] need help for maplab install, can not read index.phtml

Zak James zak-ms at hoppsan.org
Tue Jun 8 08:37:22 EDT 2004


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:
> <IfModule mod_dir.c>
>     DirectoryIndex index.html index.html.var index.phtml default.phtml 
> default.html
> </IfModule>
> Alias /mymaplab/  "C:/maplab/maplab-2.1-rc3/"
>  <Directory "C:/maplab/maplab-2.1-rc3/">
>         Options Indexes MultiViews
>         AllowOverride None
>         Order allow,deny
>         Allow from all
>     </Directory>
> why can not read index.phtml?
>
> looking forward for any suggestion and advice
>
> Thank you very much!!
>
> Charlie
>
>
>
>
> <?php
> /**
>  * 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
>  * <b>Copyright (c) 2001, DM Solutions Group Inc.</b>
>  * 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



More information about the Maplab-users mailing list