Re: [pmapper-users] Error Pmapper 5

2013-02-13 Thread Chris forum
Here is what I have in my epsg file for projection
4326http://spatialreference.org/ref/epsg/4326/proj4/
:
4326 +proj=longlat *+ellps=WGS84* +datum=WGS84 +no_defs  

For the legend, can't tell why is it pointing to the wrong directory.
You could do a grep of  $legPath to see where/how it is configured.

It should work with www-data:rafael but I am used to set www-data:users or
www-data:www-data
To be safe, do it for both images and img directories.

Still don't know why you have 'PHP Notice:  Undefined variable:
plugin_cssFileList'
but it's only a notice, a low level error that should not be a problem for
the page to load.

Hopefully the mapfile error will disappear along with the projection error.

Good luck,
Chris


On Tue, Feb 12, 2013 at 5:57 PM, Rafael Dantas raffaeldan...@gmail.comwrote:

 Hi Chris,

 tanks for the reply!

 Read my answers below:


 2013/2/12 Chris forum bak.fo...@gmail.com

 Hi Rafael,

 Some infos below.

 Cheers,
 Chris


 On Tue, Feb 12, 2013 at 3:26 AM, Rafael Dantas 
 raffaeldan...@gmail.comwrote:

 sorry,

 I'm using Ubuntu 12.10...

 grateful


 2013/2/12 Rafael Dantas raffaeldan...@gmail.com

  Hello all,
 
  sorry my english.
 
  I'm trying to install pmapper5 unsuccessfully.
  He just does not load anything and gives the following error message in
  the browser: Erro HTTP {500 (Internal Server Error)
 
  Also got the following error messages from Apache:
 
  [Tue Feb 12 00:13:00 2013] [error] [client 127.0.0.1] File does not
 exist:
  /var/www/favicon.ico

 Try to add a favicon into /var/www/ : any16x16px .ico file


 I did this:
 sudo cp -a /var/www/pmapper-5.0-beta2/img/favicon.ico /var/www/
 resolved

  
  [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Notice:
  Undefined variable: plugin_cssFileList in
  /var/www/pmapper-5.0-beta2/config/__startup_config.php on line 467,
  referer: http://localhost/pmapper-5.0-beta2/

 ???


 
  [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning:
  ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj error
  quot;no system list, errno: 2\nquot; for
 quot;init=epsg:4326quot;\n in
  /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
  http://localhost/pmapper-5.0-beta2/

 Check in /usr/local/share/proj/ or /usr/share/proj/ if the projection
 4326 is defined into the file 'epsg'


 Checked.
 In the espg file, line  line 487/498 is the information:

 # WGS 84
 4326 +proj=longlat +datum=WGS84 +no_defs  





 
  [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning:
  ms_newMapObj(): [MapServer Error]: msSaveImage(): Failed to create
 output
  file (/var/www/pmapper/images/legend/countries_i0.png).\n in
  /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
  http://localhost/pmapper-5.0-beta2/

 Do a 'chown -r www-data:users' to the directoy legend, Apache needs the
 right to write there.
 However it looks strange to me, as in my pmapper-5.0-beta2 installation,
 the parent directory of the legend one is called 'img' and not 'images'
 like your log is saying. 'images ' was used in pmapper 4.x though.



 There is something rotten in the kingdom of Denmark:

 rafael@rafael-note:/var/www/pmapper-5.0-beta2$ ls -la
 total 76
 drwxrwxr-x  9 rafael rafael 4096 Fev 11 23:57 .
 drwxr-xr-x 12 root   root   4096 Fev 12 14:38 ..
 drwxrwxr-x  6 rafael rafael 4096 Fev 12 01:46 config
 drwxrwxr-x  6 rafael rafael 4096 Fev 11 23:29 css
 -rwxrwxr-x  1 rafael rafael 2364 Fev 11 23:29 downloaddlg.phtml
 -rwxrwxr-x  1 rafael rafael 3135 Fev 11 23:29 download.phtml
 -rwxrwxr-x  1 rafael rafael  615 Fev 11 23:29 help.phtml
 *drwxrwxr-x  8 rafael rafael 4096 Fev 11 23:29 img*
 -rwxrwxr-x  1 rafael rafael 5765 Fev 11 23:29 index.phtml
 drwxrwxr-x  5 rafael rafael 4096 Fev 11 23:29 js
 drwxrwxr-x 10 rafael rafael 4096 Fev 12 01:59 lib
 -rwxrwxr-x  1 rafael rafael 8846 Fev 11 23:29 license.txt
 drwxrwxr-x  7 rafael rafael 4096 Fev 11 23:29 plugins
 -rwxrwxr-x  1 rafael rafael 2320 Fev 11 23:29 printdlg.phtml
 -rwxrwxr-x  1 rafael rafael 3713 Fev 11 23:29 printmap.phtml
 drwxrwxr-x  2 rafael rafael 4096 Fev 11 23:29 test

 rafael@rafael-note:/var/www/pmapper-5.0-beta2$ ls -la /var/www/pmapper/
 total 120
 drwxrwxr-x  8 rafael rafael  4096 Nov 23 22:10 .
 drwxr-xr-x 12 root   root4096 Fev 12 14:38 ..
 drwxrwxr-x  5 rafael rafael  4096 Nov 23 22:10 config
 -rwxrwxr-x  1 rafael rafael 17987 Jan 14  2009 COPYING
 -rwxrwxr-x  1 rafael rafael  2080 Out  6  2010 debian.html
 -rwxrwxr-x  1 rafael rafael  2373 Fev  7  2011 downloaddlg.phtml
 -rwxrwxr-x  1 rafael rafael  3141 Set 28 12:22 download.phtml
 -rwxrwxr-x  1 rafael rafael   624 Set 18  2010 help.phtml
 -rwxrwxr-x  1 rafael rafael   110 Set 28 12:58 .htaccess
 *drwxrwxr-x  9 rafael rafael  4096 Nov 23 22:10 images*
 drwxrwxr-x 10 rafael rafael  4096 Nov 23 22:10 incphp
 -rwxrwxr-x  1 rafael rafael   358 Fev 28  2010 index.phtml
 drwxrwxr-x  4 rafael rafael  4096 Nov 23 22:10 javascript
 -rwxrwxr-x  1 rafael rafael 15309 Set  4  2010 

Re: [pmapper-users] Error Pmapper 5

2013-02-13 Thread Chris forum
Hi Rafael,

Check in your mapfile (pmapper_demo.map) if the location of the epsg file
is correct:
CONFIG PROJ_LIB /usr/share/proj/

I remember now that I had to change it, before it was:
CONFIG PROJ_LIB /usr/*local*/share/proj/

Everything else should be ok from what I see.
Please keep sending your messages to the pmapper list, there are better
pmapper users than me out there! ; )

For your info, I always keep an eye on the following logs:
- Apache error
- PHP error
- Mapserver error
- PM debug

Cheers,
Chris


On Wed, Feb 13, 2013 at 2:22 PM, Rafael Dantas raffaeldan...@gmail.comwrote:

 Hi Chris,

 thanks for you reply!

 


 2013/2/13 Chris forum bak.fo...@gmail.com

 Here is what I have in my epsg file for projection 
 4326http://spatialreference.org/ref/epsg/4326/proj4/
 :
 4326 +proj=longlat *+ellps=WGS84* +datum=WGS84 +no_defs  


 Edited file:

 # WGS 84
 4326 +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  



 For the legend, can't tell why is it pointing to the wrong directory.
 You could do a grep of  $legPath to see where/how it is configured.

 It should work with www-data:rafael but I am used to set www-data:users
 or www-data:www-data
 To be safe, do it for both images and img directories.


 Executed:

 $sudo chown www-data:www-data img -R
 drwxrwxr-x  8 www-data www-data 4096 Fev 11 23:29 img

 ok?



 Still don't know why you have 'PHP Notice:  Undefined variable:
 plugin_cssFileList'
 but it's only a notice, a low level error that should not be a problem
 for the page to load.

 Hopefully the mapfile error will disappear along with the projection
 error.

 :(

 log:

 [Wed Feb 13 11:20:27 2013] [error] [client 127.0.0.1] PHP Notice:
  Undefined variable: plugin_cssFileList in
 /var/www/pmapper-5.0-beta2/config/__startup_config.php on line 467
 [Wed Feb 13 11:20:27 2013] [error] [client 127.0.0.1] PHP Warning:
  ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj error
 quot;no system list, errno: 2\nquot; for quot;init=epsg:4326quot;\n in
 /var/www/pmapper-5.0-beta2/lib/globals.php on line 66
 [Wed Feb 13 11:20:27 2013] [error] [client 127.0.0.1] PHP Fatal error:
  Uncaught exception 'MapScriptException' with message 'Failed to open map
 file /var/www/pmapper-5.0-beta2/config/default/pmapper_demo.map, or map
 file error.' in /var/www/pmapper-5.0-beta2/lib/globals.php:66\nStack
 trace:\n#0 /var/www/pmapper-5.0-beta2/lib/globals.php(66):
 ms_newMapObj('/var/www/pmappe...')\n#1
 /var/www/pmapper-5.0-beta2/index.phtml(17):
 require_once('/var/www/pmappe...')\n#2 {main}\n  thrown in
 /var/www/pmapper-5.0-beta2/lib/globals.php on line 66


--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Error Pmapper 5

2013-02-13 Thread Chris forum
Heh, looks like telepathy! ; )

Well Done!

On Wed, Feb 13, 2013 at 2:51 PM, Rafael Dantas raffaeldan...@gmail.comwrote:

 Hi Chris:

 my map file shows this:

 CONFIG PROJ_LIB /usr/local/share/proj/

 but the correct folder is:

 /usr/share/proj/

 grateful

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Error Pmapper 5

2013-02-12 Thread Chris forum
Hi Rafael,

Some infos below.

Cheers,
Chris


On Tue, Feb 12, 2013 at 3:26 AM, Rafael Dantas raffaeldan...@gmail.comwrote:

 sorry,

 I'm using Ubuntu 12.10...

 grateful


 2013/2/12 Rafael Dantas raffaeldan...@gmail.com

  Hello all,
 
  sorry my english.
 
  I'm trying to install pmapper5 unsuccessfully.
  He just does not load anything and gives the following error message in
  the browser: Erro HTTP {500 (Internal Server Error)
 
  Also got the following error messages from Apache:
 
  [Tue Feb 12 00:13:00 2013] [error] [client 127.0.0.1] File does not
 exist:
  /var/www/favicon.ico

Try to add a favicon into /var/www/ : any16x16px .ico file


  [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Notice:
  Undefined variable: plugin_cssFileList in
  /var/www/pmapper-5.0-beta2/config/__startup_config.php on line 467,
  referer: http://localhost/pmapper-5.0-beta2/

???


 
  [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning:
  ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj error
  quot;no system list, errno: 2\nquot; for quot;init=epsg:4326quot;\n
 in
  /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
  http://localhost/pmapper-5.0-beta2/

Check in /usr/local/share/proj/ or /usr/share/proj/ if the projection 4326
is defined into the file 'epsg'


  [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning:
  ms_newMapObj(): [MapServer Error]: msSaveImage(): Failed to create output
  file (/var/www/pmapper/images/legend/countries_i0.png).\n in
  /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
  http://localhost/pmapper-5.0-beta2/

Do a 'chown -r www-data:users' to the directoy legend, Apache needs the
right to write there.
However it looks strange to me, as in my pmapper-5.0-beta2 installation,
the parent directory of the legend one is called 'img' and not 'images'
like your log is saying. 'images ' was used in pmapper 4.x though.


 
  [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Fatal error:
  Uncaught exception 'MapScriptException' with message 'Failed to open map
  file /var/www/pmapper-5.0-beta2/config/default/pmapper_demo.map, or map
  file error.' in /var/www/pmapper-5.0-beta2/lib/globals.php:66\nStack
  trace:\n#0 /var/www/pmapper-5.0-beta2/lib/globals.php(66):
  ms_newMapObj('/var/www/pmappe...')\n#1
  /var/www/pmapper-5.0-beta2/index.phtml(17):
  require_once('/var/www/pmappe...')\n#2 {main}\n thrown in
  /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
  http://localhost/pmapper-5.0-beta2/

Mapfile can not be opened, probably because of the other errors.


 
  I would, if possible, any tips to understand the error messages that
  Apache is talking.
 
  grateful
 
  --
  Rafael Dantas
 



 --
 Rafael Dantas

 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 pmapper-users mailing list
 pmapper-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/pmapper-users

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


[pmapper-users] Error Pmapper 5

2013-02-11 Thread Rafael Dantas
Hello all,

sorry my english.

I'm trying to install pmapper5 unsuccessfully.
He just does not load anything and gives the following error message in the
browser: Erro HTTP {500 (Internal Server Error)

Also got the following error messages from Apache:

[Tue Feb 12 00:13:00 2013] [error] [client 127.0.0.1] File does not exist:
/var/www/favicon.ico

[Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Notice: Undefined
variable: plugin_cssFileList in
/var/www/pmapper-5.0-beta2/config/__startup_config.php on line 467,
referer: http://localhost/pmapper-5.0-beta2/

[Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning:
ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj error
quot;no system list, errno: 2\nquot; for quot;init=epsg:4326quot;\n in
/var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
http://localhost/pmapper-5.0-beta2/

[Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning:
ms_newMapObj(): [MapServer Error]: msSaveImage(): Failed to create output
file (/var/www/pmapper/images/legend/countries_i0.png).\n in
/var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
http://localhost/pmapper-5.0-beta2/

[Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Fatal error:
Uncaught exception 'MapScriptException' with message 'Failed to open map
file /var/www/pmapper-5.0-beta2/config/default/pmapper_demo.map, or map
file error.' in /var/www/pmapper-5.0-beta2/lib/globals.php:66\nStack
trace:\n#0 /var/www/pmapper-5.0-beta2/lib/globals.php(66):
ms_newMapObj('/var/www/pmappe...')\n#1
/var/www/pmapper-5.0-beta2/index.phtml(17):
require_once('/var/www/pmappe...')\n#2 {main}\n thrown in
/var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
http://localhost/pmapper-5.0-beta2/


I would, if possible, any tips to understand the error messages that Apache
is talking.

grateful

-- 
Rafael Dantas
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users


Re: [pmapper-users] Error Pmapper 5

2013-02-11 Thread Rafael Dantas
sorry,

I'm using Ubuntu 12.10...

grateful


2013/2/12 Rafael Dantas raffaeldan...@gmail.com

 Hello all,

 sorry my english.

 I'm trying to install pmapper5 unsuccessfully.
 He just does not load anything and gives the following error message in
 the browser: Erro HTTP {500 (Internal Server Error)

 Also got the following error messages from Apache:

 [Tue Feb 12 00:13:00 2013] [error] [client 127.0.0.1] File does not exist:
 /var/www/favicon.ico

 [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Notice:
 Undefined variable: plugin_cssFileList in
 /var/www/pmapper-5.0-beta2/config/__startup_config.php on line 467,
 referer: http://localhost/pmapper-5.0-beta2/

 [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning:
 ms_newMapObj(): [MapServer Error]: msProcessProjection(): proj error
 quot;no system list, errno: 2\nquot; for quot;init=epsg:4326quot;\n in
 /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
 http://localhost/pmapper-5.0-beta2/

 [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Warning:
 ms_newMapObj(): [MapServer Error]: msSaveImage(): Failed to create output
 file (/var/www/pmapper/images/legend/countries_i0.png).\n in
 /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
 http://localhost/pmapper-5.0-beta2/

 [Tue Feb 12 00:13:02 2013] [error] [client 127.0.0.1] PHP Fatal error:
 Uncaught exception 'MapScriptException' with message 'Failed to open map
 file /var/www/pmapper-5.0-beta2/config/default/pmapper_demo.map, or map
 file error.' in /var/www/pmapper-5.0-beta2/lib/globals.php:66\nStack
 trace:\n#0 /var/www/pmapper-5.0-beta2/lib/globals.php(66):
 ms_newMapObj('/var/www/pmappe...')\n#1
 /var/www/pmapper-5.0-beta2/index.phtml(17):
 require_once('/var/www/pmappe...')\n#2 {main}\n thrown in
 /var/www/pmapper-5.0-beta2/lib/globals.php on line 66, referer:
 http://localhost/pmapper-5.0-beta2/


 I would, if possible, any tips to understand the error messages that
 Apache is talking.

 grateful

 --
 Rafael Dantas




-- 
Rafael Dantas
--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users