this exactly describes the problem i have:
The error message is:
Creating PostgreSQL login …
… done
Creating PostgreSQL database xxxxx …
… PostgreSQL database failed! : SQL create database “xxxxx” with owner=“xxxxx” encoding ‘UTF8’ failed : new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) at /usr/share/webmin/web-lib-funcs.pl line 1385, line 1.
Here are the instructions too…
postgres=# update pg_database set datallowconn = TRUE where datname = ‘template0’;
UPDATE 1
postgres=# \c template0
You are now connected to database “template0”.
template0=# update pg_database set datistemplate = FALSE where datname = ‘template1’;
UPDATE 1
template0=# drop database template1;
DROP DATABASE
template0=# create database template1 with template = template0 encoding = ‘UTF8’ LC_CTYPE = ‘en_US.utf8’ LC_COLLATE = ‘en_US.utf8’;
CREATE DATABASE
template0=# update pg_database set datistemplate = TRUE where datname = ‘template1’;
UPDATE 1
template0=# \c template1
You are now connected to database “template1”.
template1=# update pg_database set datallowconn = FALSE where datname = ‘template0’;
UPDATE 1
Thanks for the help, i was able to fix this problem; now i can activate postges for a virtual host and it creates the according database.
Btw, got a “There are stopped jobs.” message, while trying to log off; i tried it with “exit” but it wouldn’t work so i tried it with “logout”, which didn’t work either so i tried it again with "exi"t. then i was taken back to my root shell.
Beset and thank you very much for pointing this out
Best
PS: BTW: Why did i get this problem in the first place? Any1 any idea?