[mapserver-users] msencrypt problems

AlessandroOggioni a.oggioni at ise.cnr.it
Mon Mar 29 08:40:05 EDT 2010


Dear user-forum,
I'm try to use msencrypt tool in my mapserver + pmapper using a
documentation (http://mapserver.org/utilities/msencrypt.html). Visualization
map it is ok, but when I try to use a "zoo to layer" or "query" the browser
stay to loading.
I have config my map file like:
MAP
...
CONFIG "MS_ENCRYPTION_KEY" "path/mykey.txt"
...
LAYER
...
    CONNECTIONTYPE postgis
    CONNECTION "host=host port=5432 dbname=dbname
password={8BD971E7BA5705373C2E91861331B886} user=postgres"
...
END
END

I have add PATH of Environmental Variable "c:/ms4w/Apache/cgi-bin" and a new
variable like: "MS_ENCRYPTION_KEY path/mykey.txt"

I have start setenv.bat file in my ms4w application.
This it' my log error
[Mon Mar 29 11:21:51 2010] [error] [client 127.0.0.1] PHP Warning: 
pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server:
FATAL:  password authentication failed for user "postgres" in
C:\\ms4w\\apps\\pmapper-4.0\\incphp\\map\\pmaplayer.php on line 57, referer:
http://localhost/pmapper-4.0/map.phtml
[Mon Mar 29 11:21:51 2010] [error] [client 127.0.0.1] P.MAPPER: Could not
connect to database, referer: http://localhost/pmapper-4.0/map.phtml
[Mon Mar 29 11:21:51 2010] [error] [client 127.0.0.1] PHP Warning: 
pg_last_error(): supplied argument is not a valid PostgreSQL link resource
in C:\\ms4w\\apps\\pmapper-4.0\\incphp\\map\\pmaplayer.php on line 59,
referer: http://localhost/pmapper-4.0/map.phtml
[Mon Mar 29 11:21:51 2010] [error] [client 127.0.0.1] P.MAPPER: PG
Connection error: , referer: http://localhost/pmapper-4.0/map.phtml

Any solution.
Thanks in advant
Best Regards
Alessandro 
-- 
View this message in context: http://n2.nabble.com/msencrypt-problems-tp4817669p4817669.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list