Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-52) was last changed on 10-Sep-2010 17:52 by Maianti Alberto  

This page was created on 14-Apr-2010 14:30 by Administrator

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 added 38 lines
!!PROBLEMONE SU ENCODING / LOCALE
Attenzione alla creazione del database con ENCODING ISO-8859-1 per caratteri strani:\\
il problema nasce dal fatto che postgres 8.3 non mi fa cambiare il locale del server se non creando un nuovo cluster con il comando:
%%prettify
{{{
# backup configurazione originale
mv /var/lib/postgresql/8.3/main /var/lib/postgresql/8.3/main_original
# mi sposto nella directory ...
cd /usr/lib/postgresql/8.3/bin/
#creo cartella main
mkdir main
#permessi
chown postgres:postgres main -R
#creo nuova configurazione
./initdb --locale=it_IT.ISO-8859-1 -E=LATIN1 -D /var/lib/postgresql/8.3/main
#ricreo link simbolici certificati in /var/lib/postgresql/8.3/main
ln -s /etc/postgresql-common/root.crt root.crt
ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem server.crt
ln -s /etc/ssl/private/ssl-cert-snakeoil.key server.key
#modifico file postgresql.conf
vi /etc/postgresql/8.3/main/postgresql.conf
#Sostituisco UTF8 con ISO-8859-1
....
# These settings are initialized by initdb, but they can be changed.
lc_messages = 'it_IT.ISO-8859-1' # locale for system error message
# strings
lc_monetary = 'it_IT.ISO-8859-1' # locale for monetary formatting
lc_numeric = 'it_IT.ISO-8859-1' # locale for number formatting
lc_time = 'it_IT.ISO-8859-1' # locale for time formatting
....
}}}
riavvio Postgres.
!!CONFIGURAZIONE BASE
At line 45 removed 10 lines
!!PROBLEMONE SU ENCODING / LOCALE
Attenzione alla creazione del database con ENCODING ISO-8859-1 per caratteri strani:\\
il problema nasce dal fatto che postgres 8.3 non mi fa cambiare il locale del server se non creando un nuovo cluster con il comando:
%%prettify
{{{
cd /usr/lib/postgresql/8.3/bin/
./initdb --locale=it_IT.ISO-8859-1 -E=LATIN1 -D /var/lib/postgresql/main2
}}}
a questo punto prendo i file sotto main2 e li sposto nella directory di main (/var/lib/postgresql/8.3/main)
ATTENZIONE: ho modificato il file /etc/postgres.conf dove metto la data directory puntare a /var/lib/postgresql/8.3/main !!!
At line 56 removed 5 lines
Riassunto:
1- creo nuovo cluster con il locale e l'encoding che voglio
2- faccio partire il demone di postgres utilizzando i file creati al punto 1
Version Date Modified Size Author Changes ... Change note
52 10-Sep-2010 17:52 7.124 kB Maianti Alberto to previous
51 10-Sep-2010 17:51 7.084 kB Maianti Alberto to previous | to last
50 10-Sep-2010 17:50 7.176 kB Maianti Alberto to previous | to last
49 14-Apr-2010 14:30 5.957 kB RaffaelePedrini to previous | to last
48 14-Apr-2010 14:30 5.694 kB RaffaelePedrini to previous | to last
47 14-Apr-2010 14:30 5.564 kB RaffaelePedrini to previous | to last
46 14-Apr-2010 14:30 5.555 kB RaffaelePedrini to previous | to last
45 14-Apr-2010 14:30 5.441 kB RaffaelePedrini to previous | to last
44 14-Apr-2010 14:30 5.52 kB RaffaelePedrini to previous | to last
43 14-Apr-2010 14:30 5.145 kB RaffaelePedrini to previous | to last
42 14-Apr-2010 14:30 4.95 kB RaffaelePedrini to previous | to last
41 14-Apr-2010 14:30 4.949 kB RaffaelePedrini to previous | to last
« This page (revision-52) was last changed on 10-Sep-2010 17:52 by Maianti Alberto