Hello again,

This is really strange, I gave full permissions to the mapfile and
made sure its is accessible through http (see below). But still
globals.php script is throwing this exception. Any suggestions?

Thank you,

Luís

$ wget http://localhost/pmapper-4.0/config/default/pmapper_demo.map
--2011-12-09 14:11:38--
http://localhost/pmapper-4.0/config/default/pmapper_demo.map
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7827 (7.6K) [text/plain]
Saving to: `pmapper_demo.map'

100%[=============================================================================>]
7,827       --.-K/s   in 0s

2011-12-09 14:11:38 (210 MB/s) - `pmapper_demo.map' saved [7827/7827]

On 8 December 2011 11:57, Luís de Sousa <luis.a.de.so...@gmail.com> wrote:
> Dear all,
>
> I'm trying to run the default pmapper app in my local Apache2 server.
> When the map.phtml file loads I get a 500 Internal Server Error and
> this shows up at Apache's log:
>
> [Thu Dec 08 11:20:15 2011] [error] [client ::1] PHP Fatal error:
> Uncaught exception 'MapScriptException' with message 'Failed to open
> map file "/var/www/pmapper-4.0/config/default/pmapper_demo.map"' in
> /var/www/pmapper-4.0/incphp/globals.php:60\nStack trace:\n#0
> /var/www/pmapper-4.0/incphp/globals.php(60):
> ms_newMapObj('/var/www/pmappe...')\n#1
> /var/www/pmapper-4.0/map.phtml(37):
> require_once('/var/www/pmappe...')\n#2 {main}\n  thrown in
> /var/www/pmapper-4.0/incphp/globals.php on line 60, referer:
> http://localhost/pmapper-4.0/index.html
>
> But the map file is readable by every user:
>
> $ ls -la /var/www/pmapper-4.0/config/default/pmapper_demo.map
> -rw-r--r-- 1 desousa root 7827 2011-12-08 10:51
> /var/www/pmapper-4.0/config/default/pmapper_demo.map
>
> Any other reason why pmapper may not be accessing the map file?
>
> Thank you,
>
> Luís

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to